Beispiel #1
0
 public void PlayerDied()
 {
     if (ChickenWave > PlayerPrefs.GetInt("HighScore", 0))
     {
         PlayerPrefs.SetInt("HighScore", ChickenWave);
     }
     Destroy(playerObject);
     deathMenu.OnDeathMenu();
 }