public void TakeDamage(int damage) { if (vulnerability == Vulnerability.Invulnerable) { return; } sounds.PlayDamageReceivedSound(); status.TakeDamage(damage); if (status.Health <= 0) { status.Respawn(); } else { ActivateInvulnerablility(); } }