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; }
public void RestartScene() { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); PlantRotationAnimation.onNewScene(); StageManager.dayCount = 0; }
public void ChangeScene(string sceneName) { SceneManager.LoadScene(sceneName); PlantRotationAnimation.onNewScene(); StageManager.dayCount = 0; }