private void Update() { if (gameStartFlag) { if (!gameStartOnce) { AudioManager.Instance.PlayBGM("BGM001"); gameStartOnce = true; } canvasManager.ApplyYuPointText(parameter.YuPoint); //ボスフラグ発生時一回だけ処理 if (bossAppearFlag) { if (!bossAppearOnce) { StartCoroutine(BossAppearPerform()); bossAppearOnce = true; } } //ボスフラグ発生時一回だけ処理 if (bossDefeatFlag) { if (!bossDefeatOnce) { StartCoroutine(BossDefeatPerform()); superOri1.SetActive(false); superOri2.SetActive(false); bossDefeatOnce = true; } } } else { if (InputController.IsPushButtonDown(KeyCode.Space)) { AudioManager.Instance.PlaySE("SE013"); gameStartFlag = true; } } if (gameClearFlag) { //ゲームクリア時一回だけ処理 if (!gameCrearOnce) { //スコアのランキングへの適用、ランキング表示 naichilab.RankingLoader.Instance.SendScoreAndShowRanking(parameter.YuPoint); gameCrearOnce = true; } if (InputController.IsPushButtonDown(KeyCode.B)) { AudioManager.Instance.StopBGM(); SceneManager.LoadScene("Title"); } } }