// Get the scores from the MySQL DB to display in a GUIText. // remember to use StartCoroutine when calling this function! IEnumerator GetScores(IScoreRequest ISR, string id) { WWW hs_get = new WWW(highscoreURL + "scoreboard_id=" + id); yield return(hs_get); if (hs_get.error != null && hs_get.error.Length > 0) { Debug.LogError("There was an error getting the high score: " + hs_get.error); } else { ISR.UpdateScore(hs_get.text); } }
public void UpdateTable(IScoreRequest ISR, string id) { StartCoroutine(GetScores(ISR, id)); }