public void OnDeath() { isDead = true; deathMenu.StartEndMenu(score); if (PlayerPrefs.GetFloat("Highscore") < score) { PlayerPrefs.SetFloat("Highscore", score); } }