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