Esempio n. 1
0
 public void Next()
 {
     //If we load the next level, we need to set timeScale to 1. It's value doesn't reset on loadScene
     SetTimeScale(1);
     PlayerPrefsPersister.SetCurrentLevel(currentLevel + 1);
     SceneManager.LoadScene("LevelScene");
 }
Esempio n. 2
0
 public void LoadLevel(int level)
 {
     PlayerPrefsPersister.SetCurrentLevel(level);
     SceneManager.LoadScene("LevelScene");
 }