Exemple #1
0
 /// <summary>
 /// Akcje wywoływane podczas kolizji z wybuchającym obiektem
 /// </summary>
 /// <param name="explosive">Materiał wybuchowy</param>
 public virtual void HandleCollisionWithExplosive(Explosive explosive)
 {
     if (IsDestructable && State == EMachineState.Normal)
     {
         Game.CurrentLevel.Player.Points += _pointsForKill;
         State = EMachineState.Dying;
     }
 }
Exemple #2
0
 public override void HandleCollisionWithExplosive(Explosive explosive)
 {
     base.HandleCollisionWithExplosive(explosive);
     if (State == EMachineState.Dying)
     {
         State = EMachineState.Dead;
     }
 }