public void DoDamage() { if (canDoDamage) { MyTarget.TakeDamage(damage, this); canDoDamage = false; } }