Exemple #1
0
 /// <summary>
 /// Rewards player with a score, destroys given object
 /// </summary>
 public void Score(FallingObject fallingObject)
 {
     fallingObject.Destroy();
     CurrentScore++;
     Scored(this, EventArgs.Empty);
 }
Exemple #2
0
 /// <summary>
 /// Player will be immune to bombs for 3 second
 /// </summary>
 public void ShieldCollected(FallingObject fallingObject)
 {
     Current.IsShieldActive = true;
     Current.ShieldTimer    = DateTime.UtcNow;
     fallingObject.Destroy();
 }
Exemple #3
0
 /// <summary>
 /// No reward for user, destroys given object
 /// </summary>
 public void NoScore(FallingObject fallingObject)
 {
     fallingObject.Destroy();
 }