IEnumerator GameOverLoop() { // 終了のクリック待ち while (true) { if (GameSystem.IsControllerable) { if (Input.GetMouseButtonDown(0)) { if (GameSystem.IsHighScore) { naichilab.RankingLoader.Instance.SendScoreAndShowRanking(GameSystem.HighScore); break; } else { LevelChanger.ChangeScene("Title"); yield break; } } } yield return(null); } // ランキング終了待ち Scene rank = SceneManager.GetSceneByName("Ranking"); while (rank.IsValid()) { yield return(null); } // タイトルへ LevelChanger.ChangeScene("Title"); }
private void Awake() { m_Instance = this; anim = GetComponent <Animator>(); anim.SetTrigger("FadeIn"); IsFading = true; IsSceneOverrided = false; }
IEnumerator GameOverLoop() { // 終了のクリック待ち while (true) { if (GameSystem.IsControllerable) { if (Input.GetMouseButtonDown(0)) { LevelChanger.ChangeScene("Title"); yield break; } } yield return(null); } }
public void ChangeScene(string sc) { LevelChanger.ChangeScene(sc); }