Пример #1
0
 private void PoisonPlayer(object sender, PlayerMoveEventArgs args)
 {
     if (poisonedPlayers == null)
     {
         poisonedPlayers = new PoisonedPlayers(this);
         poisonedPlayers.Initialize(SittingDuck, ThreatController, EventMaster);
         ThreatController.AddInternalThreat(poisonedPlayers, TimeAppears, Position);
     }
     poisonedPlayers.PoisonPlayer(args.MovingPlayer);
 }
Пример #2
0
 public override void CheckForDestroyed()
 {
     if (RemainingHealth <= 0)
     {
         if (PoisonedPlayers.Any())
         {
             OnDestroyed();
         }
         else
         {
             ActionType = PlayerAction.None;
         }
     }
 }