private void Awake()
        {
            damageCollider = GetComponent <Collider>();
            damageCollider.gameObject.SetActive(true);
            damageCollider.isTrigger = true;
            damageCollider.enabled   = enabledDamageColliderOnStartUp;

            enemyFXManager = GetComponentInParent <EnemyFXManager>();
        }
예제 #2
0
        // 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;
        }