Beispiel #1
0
 private void SetDynamite()
 {
     if (Dynamite > 0)
     {
         Dynamite--;
         var dynamite = new Dynamite(Game)
         {
             Position = this.Position// + new Vector2(BoundingBox.Width/2,BoundingBox.Height/2)
         };
         if (DynamiteSet!=null)
             DynamiteSet.Invoke(this,new DynamiteSetEventArgs(dynamite));
     }
 }
Beispiel #2
0
 public DynamiteSetEventArgs(Dynamite dynamite)
 {
     Dynamite = dynamite;
 }