private void Awake() { damageCollider = GetComponent <Collider>(); damageCollider.gameObject.SetActive(true); damageCollider.isTrigger = true; damageCollider.enabled = enabledDamageColliderOnStartUp; enemyFXManager = GetComponentInParent <EnemyFXManager>(); }
// Start is called before the first frame update private void Awake() { enemyLocomotionManager = GetComponent <EnemyLocomotionManager>(); enemyAnimatorManager = GetComponentInChildren <EnemyAnimatorManager>(); enemyFXManager = GetComponentInChildren <EnemyFXManager>(); enemyStats = GetComponent <EnemyStats>(); enemyRigidbody = GetComponent <Rigidbody>(); //backStabCollider = GetComponentInChildren<DeathblowsCollider>(); navMeshAgent = GetComponentInChildren <NavMeshAgent>(); navMeshAgent.enabled = false; }