public void onGameOver() { if (score > bestScore) { PlayerPrefs.SetInt ("Highscore", score); bestScore = score; } }