private void EndThisGame() { int score = checked ((int)HighscoreScript.GetScore()); int scoreSaved = PlayerPrefs.GetInt("highscore", -1000); if (scoreSaved < score) { PlayerPrefs.SetInt("highscore", score); } Application.LoadLevel("Menu"); }
private void EndThisGame() { int score = checked ((int)HighscoreScript.GetScore()); int scoreSaved = PlayerPrefs.GetInt("highscore", -1000); if (scoreSaved < score) { PlayerPrefs.SetInt("highscore", score); } Application.LoadLevel("Menu"); }