public void GameOver() { StaticVars.gameOver = true; StaticVars.isPaused = true; UpdateUI(); int totalStars = StaticVars.starCount + PlayerPrefs.GetInt("TotalStars", 0); PlayerPrefs.SetInt("TotalStars", totalStars); leaderboardScript.CheckForHighScore(); // StartCoroutine (WaitToCheckScore ()); }
public void InitialsEntered() { leader.CheckForHighScore(endTime, playerName.text); }