public void CauseDamage() { if (attackObject && canAttack) { attackObject.TakeDamage(usedDamage); } }