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");
        }
예제 #2
0
        private void Awake()
        {
            m_Instance = this;
            anim       = GetComponent <Animator>();

            anim.SetTrigger("FadeIn");
            IsFading         = true;
            IsSceneOverrided = false;
        }
예제 #3
0
 IEnumerator GameOverLoop()
 {
     // 終了のクリック待ち
     while (true)
     {
         if (GameSystem.IsControllerable)
         {
             if (Input.GetMouseButtonDown(0))
             {
                 LevelChanger.ChangeScene("Title");
                 yield break;
             }
         }
         yield return(null);
     }
 }
예제 #4
0
 public void ChangeScene(string sc)
 {
     LevelChanger.ChangeScene(sc);
 }