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++; } }
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"); }
private void Load() { _highScoresList = (HighScoresToSave)_Event_Load_File.ReturnParameter(_saveFileNames, this); }
private void CreateHighScoreTable(object newHighScoresList) { _highScoresList = (HighScoresToSave)newHighScoresList; PopulateHighScoreTable(); }