void Awake()
        {
            character = GetComponent <Character>();
            characterMovementController = GetComponent <CharacterMovementController>();
            healthController            = GetComponent <HealthController>();

            AddRequiredAnimatorComponent();
            healthController.OnCharacterDeath += TriggerDeathAnimation;
        }
예제 #2
0
        void Awake()
        {
            damageController             = GetComponent <DamageController>();
            weaponController             = GetComponent <WeaponController>();
            characterMovementController  = GetComponent <CharacterMovementController>();
            characterAnimationController = GetComponent <CharacterAnimationController>();

            nameText.text = characterName;
            AddBoxColliderComponent();

            if (StatPanel != null)
            {
                statPanel.SetPrimaryStats(characterStats);
                statPanel.UpdateStatValues();
            }
        }