예제 #1
0
    public void UpdateHighScoreList(object _newHighScores)
    {
        HighScoresToSave highscores = (HighScoresToSave)_newHighScores;
        int index = 0;

        foreach (var item in highscores._highScoreEntries)
        {
            _highScoreDisplayEntries[index].ChangeDisplay(index + 1, item._score, item._name);
            index++;
        }
    }
예제 #2
0
    private void NewHighScoreTable()
    {
        _highScoresList = new HighScoresToSave();
        _highScoresList._highScoreEntries = new List <HighScoreEntry>
        {
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
            new HighScoreEntry {
                _name = "TBC", _score = 10000
            },
        };

        _Event_Save_File.Invoke(_highScoresList, _saveFileNames, this);
        Debug.Log("New High Score Data Table");
    }
예제 #3
0
 private void Load()
 {
     _highScoresList = (HighScoresToSave)_Event_Load_File.ReturnParameter(_saveFileNames, this);
 }
예제 #4
0
 private void CreateHighScoreTable(object newHighScoresList)
 {
     _highScoresList = (HighScoresToSave)newHighScoresList;
     PopulateHighScoreTable();
 }