Esempio n. 1
0
        public void PullValue(NodeDispatcher dispatcher)
        {
            if (dispatcher == Source.Dispatcher)
            {
                object value;
                if (!_values.TryTake(out value))
                {
                    value = SourcePin.GetValue();
                }

                TargetPin.SetValue(value);
            }
            else
            {
                TargetPin.SetValue(_values.Take());
            }
        }
Esempio n. 2
0
 public CompositeNode(NodeDispatcher dispatcher)
 {
     Dispatcher = dispatcher;
 }