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