protected void TerminateConstruction() { TerminateConstructionInternal(); UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onConstructionCompleteCBIndex); cb?.Invoke(this); }
protected void TerminateTransitionIn() { TerminateTransitionInInternal(); UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onTransitionInCBIndex); cb?.Invoke(this); }
protected void TerminateTransitionOut() { TerminateTransitionOutInternal(); UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onTransitionOutCBIndex); cb?.Invoke(this); _baseMenuFSM.SetState(BaseMenuStates.Disabled); }
protected void TerminateDestruction() { TerminateDestructionInternal(); UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onDestructionCompleteCBIndex); cb?.Invoke(this); // I mean 0 offense when i say this, buuuuuuut.... // ALLAHU AKBAR! GameObject.Destroy(this.gameObject); }