예제 #1
0
        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);
        }
예제 #2
0
 private void NotifyEnemySensed(EnnemyController ennemyController)
 {
     if (OnEnemySensed != null)
     {
         OnEnemySensed(ennemyController);
     }
 }
예제 #3
0
        private void OnDeath(EnnemyController controller)
        {
            //Debug.Log("Yaaaaarggg....!! I died....GG.");

            destroyer.Destroy();
        }
 private void OnDeath(EnnemyController ennemy)
 {
     destroyer.Destroy();
 }
예제 #5
0
 private void OnEnnemySeen(EnnemyController ennemy)
 {
     strategy.UpdateTarget(ennemy.body);
 }
예제 #6
0
 //La fonction de l'évenement.
 private void OnHit(int hitPoints, EnnemyController source)
 {
     strategy.SetThreat(source);
 }