public void ClickButton() { if (!hit) { hit = true; GlobalSingleton.GetFader().Fade(() => { SceneManager.LoadScene("Reload"); }); } }
// 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"); }); }