예제 #1
0
 public void ClickButton()
 {
     if (!hit)
     {
         hit = true;
         GlobalSingleton.GetFader().Fade(() => { SceneManager.LoadScene("Reload"); });
     }
 }
예제 #2
0
    // Corutines:

    private IEnumerator SubmitScore(string username, int score)
    {
        if (username == null || username.Trim() == "")
        {
            username = "******";
        }

        WWW request = new WWW("https://dollarone.games/elympics/submitHighscore?" +
                              "key=[REDACTED]&name=" + WWW.EscapeURL(username) + "&score=" + score);

        yield return(request);

        GlobalSingleton.GetFader().Fade(() => { SceneManager.LoadScene("Reload"); });
    }