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