コード例 #1
0
        protected override void OnStateEntered()
        {
            view_ = ObjectPoolManager.CreateView <LevelSelectView>(GamePrefabs.Instance.LevelSelectViewPrefab);
            view_.Init(HandleLevelSelected);

            delayedBackToMainMenuView_ = CornerDelayedActionView.Show("BACK TO MAIN MENU", CornerPoint.TopLeft, ActionType.Negative, GoBack);
            delayedBackToMainMenuView_.SetInputs(InputUtil.AllInputs);
        }
コード例 #2
0
        protected override void OnStateExited()
        {
            if (view_ != null)
            {
                view_.AnimateOutAndRecycle();
                view_ = null;
            }

            if (delayedBackToMainMenuView_ != null)
            {
                delayedBackToMainMenuView_.AnimateOutAndRecycle();
                delayedBackToMainMenuView_ = null;
            }
        }