/// <summary> /// Rewards player with a score, destroys given object /// </summary> public void Score(FallingObject fallingObject) { fallingObject.Destroy(); CurrentScore++; Scored(this, EventArgs.Empty); }
/// <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(); }
/// <summary> /// No reward for user, destroys given object /// </summary> public void NoScore(FallingObject fallingObject) { fallingObject.Destroy(); }