IEnumerator AddHighscore(string username, int score, Highscore.Version version) { WWW www = new WWW(url + privateCode + "/add/" + WWW.EscapeURL(username) + "/" + score + "/0/" + version.ToString()); yield return(www); if (string.IsNullOrEmpty(www.error)) { Debug.Log("Highscore uploaded successfully: " + username); } else { Debug.LogError("Error uploading highscore: " + www.error); } }