public Buff(BuffWhilstNode buffNode, IBehaviourContext context) { buffTemplate = buffNode.BuffToApply; buffTemplate.SetupGraph(this); buffInput = buffTemplate.GetNode <BuffInputNode>(); buffInput.Target[this].Value = buffNode.Target[context].Value; BaseStackSize.onChanged += RecalculateStackSize; OnRemove += () => { buffTemplate.RemoveGraph(this); }; buffInput.SetTarget(this, this); }
public BuffClockFixed(BuffWhilstNode buffNode, IBehaviourContext context) { TicksPerSecond = buffNode.TicksPerSecond[context].Value; }