Exemplo n.º 1
0
 public void UpdateMaxScore(RunScore other)
 {
     ObstaclesPassed  = Math.Max(ObstaclesPassed, other.ObstaclesPassed);
     PowerupsPickedUp = Math.Max(PowerupsPickedUp, other.PowerupsPickedUp);
     ObstacleScore    = Math.Max(ObstacleScore, other.ObstacleScore);
     PowerupScore     = Math.Max(PowerupScore, other.PowerupScore);
     TotalScore       = Math.Max(TotalScore, other.TotalScore);
 }
Exemplo n.º 2
0
        private void OnGameStart(object[] obj)
        {
            _currentRunScore = new RunScore();

            OnScoreUpdated();
        }