public EffectController(IEffectApplicable effectsHolder) { _effects = new List <EffectBase>(); _effectsHolder = effectsHolder; _effectsHud = MasterManager.Instance.LinksHolder.EffectIconHolder.transform; _iconPrefab = MasterManager.Instance.LinksHolder.EffectIconPrefab; }
public override void OnApplyEffect(IEffectApplicable effectTarget) { base.OnApplyEffect(effectTarget); if (stat != null && stat is RegenerativeStat regenerative) { regenerative.CurrentRegenerationAmount += Amount; } }
public override void OnApplyEffect(IEffectApplicable effectTarget) { base.OnApplyEffect(effectTarget); if (target is IHaveStats statsOwner) { statsOwner.StatHolder?.TryGetStat(AffectStatType, out stat); } }
public override void OnApplyEffect(IEffectApplicable effectTarget) { base.OnApplyEffect(effectTarget); stat?.AddExtraValue(ref extraValue); }
public virtual void OnApplyEffect(IEffectApplicable effectTarget) { target = effectTarget; }