Esempio n. 1
0
 public void PressGoTitle()
 {
     //初期化処理
     BGMManager.PlayBGM(BGMManager.menuBGM);
     SEManager.PlaySE(SEManager.decision);
     SceneManager.LoadScene("Title");
 }
Esempio n. 2
0
 private void Start()
 {
     this.bossHPText.text = "敵HP: " + boss.Hp.ToString();
     if (BGMManager.playingBGM == E_BGM.boss1)
     {
         BGMManager.PlayBGM(BGMManager.bossBGM0);
     }
 }
Esempio n. 3
0
 public void PressGoStage()
 {
     SEManager.PlaySE(SEManager.decision);
     StageManager.Instance.MoveAllMoving();
     if (this.gameObject.name == "Mission10" || this.gameObject.name == "Mission11")
     {
         BGMManager.PlayBGM(BGMManager.bossBGM0);
     }
     else
     {
         BGMManager.PlayBGM(BGMManager.missionBGM);
     }
     SceneManager.LoadScene(this.gameObject.name);
 }
Esempio n. 4
0
 private void Update()
 {
     if (StageManager.Instance.IsStop)
     {
         return;
     }
     this.countTime += Time.deltaTime;
     if (this.countTime >= this.instantiateMasicCircleInterval)
     {
         this.countTime = 0f;
         GenerateMasicCircle();
         if (this.isEarlyStage && haveHpObject.Hp <= this.changeAttackHp)
         {
             this.isEarlyStage = false;
             BGMManager.PlayBGM(BGMManager.bossBGM1);
         }
     }
 }
Esempio n. 5
0
    public void MoveSceneToStageSelect()
    {
        E_PlayType playType = StageManager.Instance.PlayType;

        //StageManager.Instance.InitStageInstance();
        switch (playType)
        {
        case E_PlayType.Mission:
            BGMManager.PlayBGM(BGMManager.menuBGM);
            SceneManager.LoadScene("SelectMissionStage");
            break;

        case E_PlayType.ScoreAttack:
            SceneManager.LoadScene("SelectScoreAttackStage");
            break;

        case E_PlayType.TimeAttack:
            SceneManager.LoadScene("SelectTimeAttackStage");
            break;
        }
        StageManager.Instance.MoveAllMoving();
    }
Esempio n. 6
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Return))
        {
            if (this.CurrentSelectIndex >= 0)
            {
                //初期化処理
                InitBeforeGoStage();
                SEManager.PlaySE(SEManager.decision);
                switch (this.playType)
                {
                case E_PlayType.Mission:
                    //index+1かな
                    if (this.CurrentSelectIndex == 9 || this.CurrentSelectIndex == 10)
                    {
                        BGMManager.PlayBGM(BGMManager.bossBGM0);
                    }
                    else
                    {
                        BGMManager.PlayBGM(BGMManager.missionBGM);
                    }
                    SceneManager.LoadScene("Mission" + (this.CurrentSelectIndex + 1).ToString());

                    break;

                case E_PlayType.ScoreAttack:
                    SceneManager.LoadScene("ScoreAttack" + (this.CurrentSelectIndex + 1).ToString());
                    break;

                case E_PlayType.TimeAttack:
                    SceneManager.LoadScene("TimeAttack" + (this.CurrentSelectIndex + 1).ToString());
                    break;
                }
            }
        }
    }