void Watch()
 {
     if (!enemy.EnemySpotted())
     {
         ToAlertState();
     }
 }
Example #2
0
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         ToChaseState();
     }
 }
Example #3
0
 // Funkcja odpowiedzialna za 'widzenie' przeciwnika
 // Gdy przeciwnik zauważy bohatera ustawia jego pozycje jako nowy cel
 // I przechodzi do stanu 'gonitwy'
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         enemy.navMeshAgent.destination = enemy.lastKnownPosition;
         ToChaseState();
     }
 }
Example #4
0
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         Debug.Log("EnemySpotted");
         ToChaseState();
     }
 }
Example #5
0
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         Debug.Log("popaws chuchelo");
         ToChaseState();
     }
 }
Example #6
0
 // Funkcja odpowiadająca za 'widzenie' przeciwnika
 // Gdy przeciwnik zauwazy bohatera przechodzi do stanu gonitwy
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         Debug.Log("Zauwazylem wroga!");
         ToChaseState();
     }
 }
 void Watch()
 {
     if (enemy.EnemySpotted())
     {
         Debug.Log("I noticed the enemy");
         ToChaseState();
     }
 }