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

            _highScoreEntries.Add(entry);
        }