예제 #1
0
 public void ShowHighScore(HighScoreList highScoreList)
 {
     foreach (HighScoreEntry highScoreEntry in highScoreList.highScoreEntries)
     {
         Add(highScoreEntry);
     }
 }
예제 #2
0
        private void ReadHighScoreList()
        {
            string json = ReadFromFile();

            if (string.IsNullOrEmpty(json))
            {
                highScoreList = new HighScoreList();
            }
            else
            {
                highScoreList = JsonUtility.FromJson <HighScoreList>(json);
            }
        }