void FindTarget()
 {
     if (targetTransform == null)
     {
         WolfAI ai = FindObjectOfType <WolfAI>();
         if (ai != null)
         {
             targetTransform = ai.transform;
         }
     }
 }
Esempio n. 2
0
 private void Start()
 {
     WolfEye = GetComponent <WolfAI>();
     StartCoroutine("Viewing");
 }