Esempio n. 1
0
 public ActionOnNotify(IRaisableBehaviour newSource)
 {
     this.sources.Add(newSource);
 }
Esempio n. 2
0
 public ScoringAction(IScoreService scoreService, IRaisableBehaviour source) : base(source)
 {
     this.scoreService = scoreService;
     action            = () => { scoreService.IncreaseScore(); };
     SetAction(action);
 }
Esempio n. 3
0
 public KillPlayerAction(IHealthService healthService, IRaisableBehaviour source) : base(source)
 {
     this.healthService = healthService;
     action             = () => { healthService.KillPlayer(); };
     SetAction(action);
 }
Esempio n. 4
0
 public DamageAction(IHealthService healthService, IRaisableBehaviour source, int damageDealt = 1) : base(source)
 {
     this.healthService = healthService;
     action             = () => { healthService.DealDamage(damageDealt); };
     SetAction(action);
 }