public void OnDeath()
 {
     isDeaD = true;
     if (PlayerPrefs.GetFloat("Highscore") < scorevalue)
     {
         PlayerPrefs.SetFloat("Highscore", scorevalue);
     }
     deathmenu.toggleEndMenu(scorevalue);
 }
Exemple #2
0
 public void onDeath()
 {
     isDead = true;
     if (score > PlayerPrefs.GetFloat("HighScore"))
     {
         PlayerPrefs.SetFloat("HighScore", score);
     }
     deathMenu.toggleEndMenu(score);
 }
Exemple #3
0
 public void onDeath()
 {
     isdead = true;
     deathmenu.toggleEndMenu(score);
 }
Exemple #4
0
 public void onDeath()
 {
     isDeath = true;
     deathMenu.toggleEndMenu(score);
 }