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