public void SetDamage(EntityCondition targetToHit) { if (!ReferenceEquals(targetToHit, null)) { targetToHit.AddDamage(battleUnitData.damage); } }
public void SetDamage(EntityCondition targetToHit) { if (!ReferenceEquals(targetToHit, null)) { targetToHit.AddDamage(battleUnitData.damage - ((_transform.position - targetToHit.transform.position).magnitude * 10f)); } }