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