virtual public void TakeDamage(float damageAmount) { currentHealth -= damageAmount; gameUI.DamageIndicator(transform.position, damageAmount); if (currentHealth <= 0) { CharacterDeath(); } }