예제 #1
0
    public static void LoadScene(Scene scene, bool save)
    {
        SaveAndLoadGame.Save();
        switch (scene)
        {
        case Scene.MainMenu:
            UnityEngine.SceneManagement.SceneManager.LoadScene(0);
            break;

        case Scene.TestLevel:
            UnityEngine.SceneManagement.SceneManager.LoadScene(1);
            break;
        }
    }
예제 #2
0
 public static void EndGame()
 {
     SaveAndLoadGame.Save();
     Application.Quit();
 }