예제 #1
0
 public void EndGame()
 {
     this.inGame = false;
     Koma_Rotate.EndRotate();
     Player_Move.EndGame();
     SceneManager.LoadScene("MainScene");
 }
예제 #2
0
    private void Awake()
    {
        Application.targetFrameRate = 60;

        bool titleSceneLoaded = false;

        foreach (Scene s in SceneManager.GetAllScenes())
        {
            if (s.name == "TitleScene")
            {
                titleSceneLoaded = true;
            }
        }
        if (!titleSceneLoaded)
        {
            SceneManager.LoadScene("TitleScene", LoadSceneMode.Additive);
        }

        Koma_Rotate.EndRotate();
        Player_Move.EndGame();
    }