public DamageAction(IHealthService healthService, IRaisableBehaviour source, int damageDealt = 1) : base(source) { this.healthService = healthService; action = () => { healthService.DealDamage(damageDealt); }; SetAction(action); }
public DamageAction(IHealthService healthService, List <IRaisableBehaviour> sources) : base(sources) { this.healthService = healthService; action = () => { healthService.DealDamage(); }; SetAction(action); }