예제 #1
0
        private void OnTutorialShow(ShowableView showable)
        {
            showable.OnShow -= OnTutorialShow;
            var tutorialScreen = showable.GetComponent <TutorialScreenView>();

            tutorialScreen.OnClose += OnTutorialClose;
            tutorialScreen.Open();
        }
예제 #2
0
        private void OnStartScreenShow(ShowableView showable)
        {
            showable.OnShow -= OnStartScreenShow;
            PlayerState playerState = playerStateStorage.Get();

            level.Init(playerState.Level);
            levelGenerator.NewLevel(level, OnLevelGenerate);
        }
        private void OnHide(ShowableView levelCompleteScreenShowable)
        {
            levelCompleteScreenShowable.OnHide -= OnHide;
            var skillsScreenShowable =
                skillsScreen.GetComponent <ShowableView>();

            skillsScreenShowable.OnHide += OnSkillsScreenHide;
            skillsScreenShowable.Show();
        }
예제 #4
0
        public void OnLevelStartScreenHide(ShowableView showable)
        {
            if (tutorialScreen.IsOpened)
            {
                return;
            }

            game.Resume();
        }
예제 #5
0
        private void OnStartScreenHide(ShowableView showable)
        {
            showable.OnHide -= OnStartScreenHide;
            PlayerState playerState = playerStateStorage.Get();

            if (playerState.Level == 0 && !playerState.WasTutorialShown)
            {
                var tutorialShowable =
                    tutorialScreen.GetComponent <ShowableView>();
                tutorialShowable.OnShow += OnTutorialShow;
                tutorialShowable.Show();
                playerState.WasTutorialShown = true;
            }
        }
예제 #6
0
 public void OnLevelCompleteScreenShow(ShowableView showable)
 {
     Everyplay.StopRecording();
 }
예제 #7
0
 public void OnLevelStartScreenShow(ShowableView showable)
 {
     Everyplay.StartRecording();
 }
예제 #8
0
 public void OnGameOverScreenShow(ShowableView showable)
 {
     Everyplay.PauseRecording();
 }
예제 #9
0
 private void OnHideForRestart(ShowableView showable)
 {
     showable.OnHide -= OnHideForRestart;
     Game.LoadLevel();
 }
 private void OnSkillsScreenHide(ShowableView showable)
 {
     showable.OnHide -= OnSkillsScreenHide;
     game.LoadLevel();
 }
예제 #11
0
 public void OnGameOverScreenHide(ShowableView showable)
 {
     game.Resume();
 }
예제 #12
0
 public void OnGameOverScreenShow(ShowableView showable)
 {
     game.Pause();
 }
예제 #13
0
 public void OnTutorialHide(ShowableView showable)
 {
     game.Resume();
 }
예제 #14
0
 public void OnTutorialPreShow(ShowableView showable)
 {
     game.Pause();
 }