IEnumerator RefreshHighscores() { while (SceneManager.GetActiveScene().name == "Startmenu") { highscoreManager.Downloadighscores(); yield return(new WaitForSeconds(30)); } }