void DoDamage(Demageable damageable) { damageable.TakeDamage(damage); if (destroyOnDamage) { Destroy(gameObject); } }