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); }
public void PickUpFunction(Ennemy.EnnemyController ennemy) { ennemy.Heal(healPoints); }
public void PickUpFunction(Ennemy.EnnemyController ennemy) { ennemy.ActivateInvincibility(INVINCIBILITY_TIME); }