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