示例#1
0
        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);
        }
示例#2
0
 public BuffClockFixed(BuffWhilstNode buffNode, IBehaviourContext context)
 {
     TicksPerSecond = buffNode.TicksPerSecond[context].Value;
 }