コード例 #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
ファイル: BuffClockFixed.cs プロジェクト: xJayLee/RPGCore
 public BuffClockFixed(BuffWhilstNode buffNode, IBehaviourContext context)
 {
     TicksPerSecond = buffNode.TicksPerSecond[context].Value;
 }