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());
     }
 }
Example #2
0
    IEnumerator EndGame()
    {
        yield return(new WaitForSeconds(2f));

        menu.LoadScene(4);
    }
Example #3
0
    IEnumerator SwitchScenes()
    {
        yield return(new WaitForSeconds(1.5f));

        menu.LoadScene(1);
    }