private void LogHighscores(HttpClient.HighscoreList list) { foreach (HttpClient.State s in list.highscores) { Debug.Log(s.name + ": " + s.height); } }
private void LogHighscores(HttpClient.HighscoreList list) { for (int i = 0; i < Mathf.Min(5, list.highscores.Length); i++) { nameTexts[i].text = list.highscores[i].name; scoreTexts[i].text = list.highscores[i].height.ToString("N2"); } }