Ejemplo n.º 1
0
 private void EnemySensor_OnEnnemySeen(Ennemy.EnnemyController ennemy)
 {
     if (!(ennemy.GetStrategyType() is ZombieStrategy))
     {
         pickUpFunction?.Invoke(ennemy);
         NotifyOnPickUp();
         Destroy(this.gameObject);
     }
 }
 public void PickUpFunction(Ennemy.EnnemyController ennemy)
 {
     ennemy.Take(this.transform.parent.gameObject);
 }
Ejemplo n.º 3
0
 public void PickUpFunction(Ennemy.EnnemyController ennemy)
 {
     ennemy.Heal(healPoints);
 }
 public void PickUpFunction(Ennemy.EnnemyController ennemy)
 {
     ennemy.ActivateInvincibility(INVINCIBILITY_TIME);
 }