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