public void Submit() { if (string.IsNullOrEmpty(input.text)) { menu.LoadScene(0); } else { string username = input.text; //string score = clock.minutes.ToString() + ":" + clock.seconds.ToString("f2"); //string score = 50.ToString(); highScores.AddNewHighScore(username, score); StartCoroutine(LoadMenu()); } }
IEnumerator EndGame() { yield return(new WaitForSeconds(2f)); menu.LoadScene(4); }
IEnumerator SwitchScenes() { yield return(new WaitForSeconds(1.5f)); menu.LoadScene(1); }