Exemplo n.º 1
0
 private void Awake()
 {
     _eState   = GetComponent <EnemyState>();
     _navAgent = GetComponent <NavMeshAgent>();
     _anims    = GetComponent <Animator>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     _state = GetComponent <EnemyState>();
     _state.OnStateChange.AddListener(OnEnemyStateChange);
     _lastStepPos = transform.position;
 }