Ejemplo n.º 1
0
        public override void OnFadeOutDone()
        {
            isStarted = true;

            StarClean.StartClearedStage(GameParams.ClearedStageCount);

            if (videoPlayer == null)
            {
                videoPlayer = GetComponent <VideoPlayer>();
            }

#if DEBUG_ENDING
            GameParams.Instance.toStageSelect = ToStageSelectType.Clear;
#endif

            switch (GameParams.Instance.toStageSelect)
            {
            case ToStageSelectType.NewGame:
                PlayVideo(VideoType.Opening);
                nextState = StateType.PlayerControl;
                break;

            case ToStageSelectType.Clear:
                // 途中の動画チェック
                if (GameParams.NowClearStage == 4)
                {
                    PlayVideo(VideoType.Stage5);
                    nextState = StateType.PlayerControl;
                }
                else if (GameParams.NowClearStage == 9)
                {
                    PlayVideo(VideoType.Ending);
                    nextState = StateType.CreditRoll;
                }
                else
                {
                    state = StateType.Clear;
                }

#if DEBUG_ENDING
                PlayVideo(VideoType.Ending);
                nextState = StateType.CreditRoll;
#endif

                break;

            case ToStageSelectType.Back:
                state = StateType.Back;
                break;
            }

            UpdateStageName();
            base.OnFadeOutDone();
            SceneManager.SetActiveScene(gameObject.scene);
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     instance            = this;
     isStarted           = false;
     hozonCleardStageNum = 0;
 }