示例#1
0
 /// <summary>
 /// Updates mario's score if it is not updated yet
 /// </summary>
 /// <param name="sc"></param>
 public override void UpdateScoreBoard(ScoreBoard sc)
 {
     if (gotPoints == false)
     {
         sc.UpdateScore(20);
         gotPoints = true;
     }
 }
示例#2
0
 /// <summary>
 /// The scoreboard gets +20 points
 /// </summary>
 /// <param name="scoreboard"></param>
 public override void UpdateScoreBoard(ScoreBoard scoreboard)
 {
     scoreboard.UpdateScore(20);
 }