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