private void Awake() { _navMeshAgent = GetComponent <NavMeshAgent>(); _waypointManager = GetComponentInChildren <EnemyWaypointManager>(); }
private void Awake() { _enemyWaypointManager = _enemyGameObject.GetComponentInChildren <EnemyWaypointManager>(); _enemyNavMeshAgent = _enemyGameObject.GetComponent <NavMeshAgent>(); }