Beispiel #1
0
        /// <summary>
        /// フェードインが完了した時の処理
        /// </summary>
        public override void OnFadeInDone()
        {
            base.OnFadeInDone();

            if (GameParams.Instance.toStageSelect == ToStageSelectType.Clear)
            {
                nextState = StateType.Clear;
            }
            else if ((GameParams.Instance.toStageSelect == ToStageSelectType.Back) ||
                     (GameParams.Instance.toStageSelect == ToStageSelectType.NewGame))
            {
                nextState = StateType.PlayerControl;
            }
            else if (GameParams.Instance.toStageSelect == ToStageSelectType.NextStage)
            {
                MovieOrNextStage();
            }

            // カメラアニメ
            if (GameParams.Instance.toStageSelect == ToStageSelectType.NewGame)
            {
                StageSelectCamera.SetAnim(StageSelectCamera.AnimType.NewGame);
            }
            else
            {
                StageSelectCamera.SetAnim(StageSelectCamera.AnimType.Back);
            }
        }
Beispiel #2
0
        void UpdatePlayerControl()
        {
            float cursor = Input.GetAxisRaw("Horizontal") + Input.GetAxisRaw("Vertical");

            if ((cursor < -0.5f) && (lastCursor > -0.5f))
            {
                SoundController.Play(SoundController.SeType.MoveCursor);
                GameParams.PrevSelectStage();
                UpdateStageName();
            }
            else if ((cursor > 0.5f) && (lastCursor < 0.5f))
            {
                SoundController.Play(SoundController.SeType.MoveCursor);
                GameParams.NextSelectStage();
                UpdateStageName();
            }
            lastCursor = cursor;

            if (GameParams.IsActionAndWaterButtonDown)
            {
                state = StateType.None;
                SoundController.Play(SoundController.SeType.Decision);
                StageSelectCamera.SetAnim(StageSelectCamera.AnimType.Start);
                SceneChanger.ChangeScene(SceneChanger.SceneType.Game);
            }
            else if (Input.GetButtonDown("Esc"))
            {
                state = StateType.None;
                SoundController.Play(SoundController.SeType.Decision);
                StageSelectCamera.SetAnim(StageSelectCamera.AnimType.ToTitle);
                SceneChanger.ChangeScene(SceneChanger.SceneType.Title);
            }
        }
Beispiel #3
0
        public override void OnFadeOutDone()
        {
            isStarted         = true;
            GameParams.isMiss = false;
            audioSource       = GetComponent <AudioSource>();
            videoPlayer       = GetComponent <VideoPlayer>();

            //StarClean.StartClearedStage(GameParams.ClearedStageCount);
            baseStar.MakeSeaTexture();

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

            if (GameParams.Instance.toStageSelect != ToStageSelectType.NewGame)
            {
                StageSelectCamera.SetAnim(StageSelectCamera.AnimType.BackStandby);
            }

            UpdateStageName();
            SceneManager.SetActiveScene(gameObject.scene);
            base.OnFadeOutDone();
        }