public void TakeDamage(DamageProperties damageProperties) { if (EntityProperties.TakeDamage(damageProperties)) { toDestroy = true; } }