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()