fix issue with param disabling

This commit is contained in:
minenice55 2022-07-08 16:20:39 -04:00
parent 576807ad4f
commit 7adc281618
2 changed files with 1 additions and 2 deletions

View file

@ -9,10 +9,8 @@ namespace HeavenStudio.Editor
{ {
public EventParameterManager eventParameterManager; public EventParameterManager eventParameterManager;
// this is programmed on duct tape https://youtu.be/zMWA0ipQ94w?t=868
private void LateUpdate() private void LateUpdate()
{ {
eventParameterManager.canDisable = true;
for (int i = 0; i < transform.childCount; i++) for (int i = 0; i < transform.childCount; i++)
{ {
if (Editor.MouseInRectTransform(transform.GetChild(i).GetComponent<RectTransform>())) if (Editor.MouseInRectTransform(transform.GetChild(i).GetComponent<RectTransform>()))

View file

@ -49,6 +49,7 @@ namespace HeavenStudio.Editor
Disable(); Disable();
} }
} }
canDisable = true;
} }
public void Disable() public void Disable()