public void DisableImmediate() { if (UIManager.Disable(this)) { OnDisable(); locale.Unload(); Active = false; OnGUI = null; } }
public void EnableNext(GUIBase next) { if (!Active) { return; } OnGUI = animator.StartClose(() => { if (UIManager.Disable(this)) { OnDisable(); locale.Unload(); Active = false; next.Enable(); } }); }