예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     IsCombo = false;
     // コンボボーナス加算用にスコアマネージャー受け取っておく
     scoreManager_ = ScoreManager.Instance;
     // 生成率はどれも一緒なのでどれか一つを取ればいい
     spawner_ = FindObjectOfType <Spawner>();
     // バウンティーマネージャー
     bountyManager_ = BountyManager._instance;
     bountyManager_.SetNowCombo(comboNum_);
     //アニメーターの取得
     animator_ = GetComponent <Animator>();
 }
        // Start is called before the first frame update
        void Start()
        {
            // スコアマネージャ―取得
            scoreManager_ = ScoreManager.Instance;
            // コンボマネージャー取得
            comboManager_ = ComboManager.Instance;
            // バウンティマネージャー取得
            bountyManager_ = BountyManager._instance;

            // アプリケーションマネージャーに現在の状態を保存
            applicationManager_ = FindObjectOfType <ApplicationManager>();
            applicationManager_.SetIsInput(true);
            applicationManager_.SetIsGamePlay(false);

            // 最初は操作説明のみ出す
            tutorial_.gameObject.SetActive(true);

            // 他はいったん非表示
            timer_.gameObject.SetActive(false);
            timeUp_.gameObject.SetActive(false);
            countdown_.gameObject.SetActive(false);
            scoreManager_.gameObject.SetActive(false);
            missionDrawUI_.gameObject.SetActive(false);
            bountyManager_.gameObject.SetActive(false);
            remainingBulletGauge_.gameObject.SetActive(false);
            optionMenu_.gameObject.SetActive(false);
            skillUI_.gameObject.SetActive(false);
            spWeaponUI_.gameObject.SetActive(false);

            // タイマーを止めておく
            timer_.TimerStop();

            // マウスカーソルをだす
            CursorManager.CursorUnlock();

            // BGM再生
            AudioManager.Instance.PlayBGM(gameObject, BGMPath.GAME_BGM_MAIN, 3.0f);

            // ステートを操作説明にする
            state_ = GAME_SCENE_STATE.TUTORIAL;
        }