public void ShowHighScore(HighScoreList highScoreList) { foreach (HighScoreEntry highScoreEntry in highScoreList.highScoreEntries) { Add(highScoreEntry); } }
private void ReadHighScoreList() { string json = ReadFromFile(); if (string.IsNullOrEmpty(json)) { highScoreList = new HighScoreList(); } else { highScoreList = JsonUtility.FromJson <HighScoreList>(json); } }