Example #1
0
 public void Look()
 {
     for (int i = 0; i < agent.enemies.Length; i++)
     {
         enemyType = agent.enemies[i];
         TargetTrackRequestManager.RequestTrackingTarget(new TargetTrackRequest(enemyType, agent.agent, agent.sightRange, OnTargetFound));
     }
 }
 private void Awake()
 {
     instance = this;
     tracking = GetComponentInParent <Tracking>();
 }