public void AddEffect(IEffect <LivingBeing> eff) { if (eff.CanApply(this)) { this._currentEffect.Add(eff); eff.Apply(this); } }
public void Apply(GameObject target) { IEffect effect = CreateEffect(target); if (effect.CanApply()) { effect.Apply(); } }
protected override void Activate(Cell cell) { IEffect effect = abilityEffectData.CreateEffect(cell.FrontEntity.GameObject); if (effect.CanApply()) { effect.Apply(); } FinishMove(cell); }