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

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