示例#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);
 }
示例#2
0
        private void OnGameStart(object[] obj)
        {
            _currentRunScore = new RunScore();

            OnScoreUpdated();
        }