public virtual void TakeDamage(double amount) { if (attackTimer == 0) { Sounds.GetEnemyHurtSound().Play(); attackTimer = TakeDamageCooldown; currentHearts -= amount; } }
public virtual void TakeDamage(double amount) { if (attackTimer == 0) { Sounds.GetEnemyHurtSound().Play(); attackTimer = TakeDamageCooldown; currentHearts -= amount; } }