Example #1
0
        public override void OnRemove()
        {
            base.OnRemove();

            gameStart.RemoveListener(Hide);
            gameRestart.RemoveListener(Show);
            gameLost.RemoveListener(Show);
        }
Example #2
0
 public override void OnRemove()
 {
     gameStart.RemoveListener(View.SetGameplayState);
     gamePause.RemoveListener(View.SetPauseState);
     gameResume.RemoveListener(View.SetGameplayState);
     gameEnd.RemoveListener(View.SetResultState);
     gameRestart.RemoveListener(View.SetRestartState);
     gameContinue.RemoveListener(View.SetGameplayState);
     continueStart.RemoveListener(View.SetContinueState);
 }
        public override void OnRemove()
        {
            base.OnRemove();

            gameStartSignal.RemoveListener(Hide);
            gameResumeSignal.RemoveListener(Hide);

            gameEndSignal.RemoveListener(Show);
            gameRestartSignal.RemoveListener(Show);
            gamePauseSignal.RemoveListener(Show);
        }
Example #4
0
        public override void OnRemove()
        {
            base.OnRemove();

            gameStart.RemoveListener(Show);
            gamePause.RemoveListener(Hide);
            gameResume.RemoveListener(Show);
            gameContinue.RemoveListener(Show);
            gameLost.RemoveListener(Hide);
            newLevelSignal.RemoveListener(Show);
            endLevelSignal.RemoveListener(Hide);

            PauseManager.OnFocus -= OnApplicationFocus;
        }
        public override void OnRemove()
        {
            gameStart.RemoveListener(OnGameStart);
            gameLost.RemoveListener(OnGameLost);
            gameContinue.RemoveListener(OnGameContinue);
            gameRestart.RemoveListener(OnGameRestart);
            continueStartSignal.RemoveListener(OnContinueStart);
            gamePause.RemoveListener(OnGamePause);
            gameResume.RemoveListener(OnGameResume);
            gameEnd.RemoveListener(OnGameEnd);

            switch ((GameGroups.GameGroupGameType)GameGroups.GameCtrl.instance.SelectGameNumber)
            {
            case GameGroups.GameGroupGameType.Cat:
                if (uiVisibilityConfig_cat != null)
                {
                    uiVisibilityConfig_cat.OnChanged -= handler;
                }
                break;

            case GameGroups.GameGroupGameType.Gun:
                if (uiVisibilityConfig_gun != null)
                {
                    uiVisibilityConfig_gun.OnChanged -= handler;
                }
                break;

            case GameGroups.GameGroupGameType.Orbit:
                if (uiVisibilityConfig_orbit != null)
                {
                    uiVisibilityConfig_orbit.OnChanged -= handler;
                }
                break;

            case GameGroups.GameGroupGameType.Slame:
                if (uiVisibilityConfig_slame != null)
                {
                    uiVisibilityConfig_slame.OnChanged -= handler;
                }
                break;
            }
        }