示例#1
0
 public void Attack(Survivor survivor)
 {
     if (!CanAttack())
     {
         return;
     }
     survivor.OnHit();
     NextAvailableAttack = DateTime.Now.Add(TimeSpan.FromSeconds(5));
 }
示例#2
0
 public void Pickup(Survivor survivor)
 {
     HeldSurvivor = survivor;
     survivor.OnPickedUp();
 }
示例#3
0
 public bool CanPickup(Survivor survivor)
 {
     return(HeldSurvivor == null);
 }