IEnumerator RefreshHighscores() { while (true) { Debug.Log("Downloading leaderboard"); highscoresManager.DownloadHighscores(); yield return(new WaitForSeconds(20f)); } }