void Start() { navMeshAgent = GetComponent <NavMeshAgent>(); if (activeAgroZone) { agroZone = GetComponentInChildren <E_AgroZone>(); } if (points.Length > 0) { coroutine = StartCoroutine(StartMove()); } }
void Start() { agroZone = transform.parent.GetComponentInChildren <E_AgroZone>(); }