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

            _highScoreEntries.Add(entry);
        }