Пример #1
0
 public override void morirse()
 {
     base.morirse();
     explo = new Explosion();
     explo.posicion = getPosicionActual();
     explo.init();
 }
 public override void Update(float elapsedTime)
 {
     hitDelay -= elapsedTime;
     if (hitDelay <= 0 && fired)
     {
         explosion = new Explosion();
         explosion.posicion = target;
         explosion.init();
         explosion.Explotar();
         fired = false;
     }
     base.Update(elapsedTime);
 }