예제 #1
0
        protected void TerminateConstruction()
        {
            TerminateConstructionInternal();
            UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onConstructionCompleteCBIndex);

            cb?.Invoke(this);
        }
예제 #2
0
        protected void TerminateTransitionIn()
        {
            TerminateTransitionInInternal();
            UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onTransitionInCBIndex);

            cb?.Invoke(this);
        }
예제 #3
0
        protected void TerminateTransitionOut()
        {
            TerminateTransitionOutInternal();
            UnityAction <BaseMenu> cb = TemporaryVariableManager.GetTemporaryVariable <UnityAction <BaseMenu> >(this, _onTransitionOutCBIndex);

            cb?.Invoke(this);
            _baseMenuFSM.SetState(BaseMenuStates.Disabled);
        }
예제 #4
0
        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);
        }