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