void Awake() { character = GetComponent <Character>(); characterMovementController = GetComponent <CharacterMovementController>(); healthController = GetComponent <HealthController>(); AddRequiredAnimatorComponent(); healthController.OnCharacterDeath += TriggerDeathAnimation; }
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(); } }