private void OnHit(int hitPoints, EnnemyController source) //la fonction de levenement { // Debug.Log("OW, I'm hurt! I'm really much hurt!!!"); health.Hit(hitPoints); strategy.DefendModeEngaged(source); }
private void NotifyEnemySensed(EnnemyController ennemyController) { if (OnEnemySensed != null) { OnEnemySensed(ennemyController); } }
private void OnDeath(EnnemyController controller) { //Debug.Log("Yaaaaarggg....!! I died....GG."); destroyer.Destroy(); }
private void OnDeath(EnnemyController ennemy) { destroyer.Destroy(); }
private void OnEnnemySeen(EnnemyController ennemy) { strategy.UpdateTarget(ennemy.body); }
//La fonction de l'évenement. private void OnHit(int hitPoints, EnnemyController source) { strategy.SetThreat(source); }