private void Awake() { health = maxHealth; player = GameObject.FindGameObjectWithTag("Player"); if (characterAudioprofile is IAudioActions) { audioAction = GetComponent <IAudioActions>(); } }
void Start() { if (useAttackRate) { nextAttackTime = attackRate; } else { nextAttackTime = 0; } if (characterAudioProfile is IAudioActions) { audioAction = GetComponent <IAudioActions>(); } }