/** * Initialize new HighScoreEntry with playerName */ public void InitializeNewGame() { _highScoreEntry = new HighScoreEntry { PlayerName = "", Score = 0, MillisecondsOnPlayStart = (long)(DateTime.UtcNow - epochStart).TotalMilliseconds }; }
void AddTestHighScoreEntry() { Debug.Log("Added new Score"); var entry = new HighScoreEntry { PlayerName = "PlayerName", Score = 1000, MillisecondsOnPlayStart = 987654321, MillisecondsOnPlayEnd = 1987654321 }; _highScoreEntries.Add(entry); }