Exemple #1
0
 public void RestartGame()
 {
     //restart from level 1
     LifeTracker.setLives(3);
     PlayerPrefs.SetInt("score", 0);
     ScoreTracker.setScore(0);
     SceneManager.LoadScene("Level 1");
 }
Exemple #2
0
 public void NewGame()
 {
     LifeTracker.setLives(3);
     PlayerPrefs.SetInt("score", 0);
     SceneManager.LoadScene(startLevel);
 }
Exemple #3
0
 public void FinalBoss()
 {
     LifeTracker.setLives(3);
     PlayerPrefs.SetInt("score", 0);
     SceneManager.LoadScene(bossLevel);
 }
Exemple #4
0
 public void Level2()
 {
     LifeTracker.setLives(3);
     PlayerPrefs.SetInt("score", 0);
     SceneManager.LoadScene(level2);
 }