예제 #1
0
        // Start is called before the first frame update
        private void Start()
        {
            HealthPoints = maxHealthPoints;

            _damageTextSpawner = GetComponentInChildren <DamageTextSpawner>();
            _lifeBarController = GetComponent <LifeBarController>();
            _animator          = GetComponent <Animator>();
            _actionScheduler   = GetComponent <ActionScheduler>();
            _capsuleCollider   = GetComponent <CapsuleCollider>();
            _navMeshAgent      = GetComponent <NavMeshAgent>();
            _aiController      = GetComponent <AIController>();
            _combatTarget      = GetComponent <CombatTarget>();

            if (_lifeBarController != null)
            {
                _lifeBarController.InitLifeBar();
            }
        }