You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect this to either always call the onFalse callback, or at least do nothing if the button state is already "false." But it calls the onTrue callback instead via ToggleButtonActive because SetFalse doesn't check the current state of the button.
The text was updated successfully, but these errors were encountered:
Looks like I can work around this by calling SetFalse(true) instead. Perhaps the overload without arguments should be removed? Although since the default parameter value of the other overload is false that would change behavior. Perhaps the one with no arg should just call SetFalse(true).
I have an event handler on level loaded:
My code:
I would expect this to either always call the onFalse callback, or at least do nothing if the button state is already "false." But it calls the onTrue callback instead via ToggleButtonActive because SetFalse doesn't check the current state of the button.
The text was updated successfully, but these errors were encountered: