From 7adc2816181c947df8c111fc0c0fa36b66dbe15f Mon Sep 17 00:00:00 2001 From: minenice55 Date: Fri, 8 Jul 2022 16:20:39 -0400 Subject: [PATCH] fix issue with param disabling --- Assets/Scripts/LevelEditor/DisableSelectOnHover.cs | 2 -- .../Scripts/LevelEditor/EventSelector/EventParameterManager.cs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/LevelEditor/DisableSelectOnHover.cs b/Assets/Scripts/LevelEditor/DisableSelectOnHover.cs index acac5805..8139d02c 100644 --- a/Assets/Scripts/LevelEditor/DisableSelectOnHover.cs +++ b/Assets/Scripts/LevelEditor/DisableSelectOnHover.cs @@ -9,10 +9,8 @@ namespace HeavenStudio.Editor { public EventParameterManager eventParameterManager; - // this is programmed on duct tape https://youtu.be/zMWA0ipQ94w?t=868 private void LateUpdate() { - eventParameterManager.canDisable = true; for (int i = 0; i < transform.childCount; i++) { if (Editor.MouseInRectTransform(transform.GetChild(i).GetComponent())) diff --git a/Assets/Scripts/LevelEditor/EventSelector/EventParameterManager.cs b/Assets/Scripts/LevelEditor/EventSelector/EventParameterManager.cs index 97045f2b..c0e1c16d 100644 --- a/Assets/Scripts/LevelEditor/EventSelector/EventParameterManager.cs +++ b/Assets/Scripts/LevelEditor/EventSelector/EventParameterManager.cs @@ -49,6 +49,7 @@ namespace HeavenStudio.Editor Disable(); } } + canDisable = true; } public void Disable()