private void OnHit(HitParameters arguments) { var dealt = arguments.damageable.TakeDamage(Damage); OnDamageDealt?.Invoke(new DamageDealtParameters(arguments, dealt)); }
public DamageDealtParameters(HitParameters hitParameters, float damage) { this.hitParameters = hitParameters; this.damage = damage; }