Beispiel #1
0
 public void NextScene()
 {
     if (SceneManager.GetActiveScene().buildIndex + 1 < SceneManager.sceneCountInBuildSettings)
     {
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
     }
     else
     {
         SceneManager.LoadScene("Overworld");
     }
     PlantRotationAnimation.onNewScene();
     StageManager.dayCount = 0;
 }
Beispiel #2
0
 public void RestartScene()
 {
     SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
     PlantRotationAnimation.onNewScene();
     StageManager.dayCount = 0;
 }
Beispiel #3
0
 public void ChangeScene(string sceneName)
 {
     SceneManager.LoadScene(sceneName);
     PlantRotationAnimation.onNewScene();
     StageManager.dayCount = 0;
 }