void SetInitialReferences() { _animator = GetComponent <Animator>(); _botMaster = GetComponent <BotMaster>(); _enemyNavPause = GetComponent <BotNavPause>(); _botMedic = GetComponent <BotMedic>(); _myTransform = transform; }
void SetInitialReferences() { _botMaster = GetComponent <BotMaster>(); _botNavPause = GetComponent <BotNavPause>(); _checkRate = Random.Range(0.2f, 0.3f); if (GetComponent <NavMeshAgent>() != null) { _myNavMeshAgent = GetComponent <NavMeshAgent>(); } }
void SetInitialReferences() { _animator = GetComponent <Animator>(); _botMaster = GetComponent <BotMaster>(); _enemyNavPause = GetComponent <BotNavPause>(); }
void Start() { _navMeshAgent = GetComponent <NavMeshAgent>(); _botNavPause = GetComponent <BotNavPause>(); _nextDodge = -1; }