Beispiel #1
0
        protected override void UpdateNode(Node node)
        {
            if (node.name.Equals("analogInput"))
            {
                node.updated = true;

                if (node.objectTarget == null && _analogInput == null)
                {
                    return;
                }

                if (node.objectTarget != null)
                {
                    if (node.objectTarget.Equals(_analogInput))
                    {
                        return;
                    }
                }

                _analogInput = node.objectTarget as AnalogInput;
                if (_analogInput != null)
                {
                    Reset();
                    _connected = _analogInput.connected;
                }
                else
                {
                    node.objectTarget = null;
                }

                return;
            }
            else if (node.name.Equals("result"))
            {
                node.updated = true;
                return;
            }

            base.UpdateNode(node);
        }
Beispiel #2
0
        protected override void UpdateNode(Node node)
        {
            if (node.name.Equals("analogInput"))
            {
                node.updated = true;

                if (node.objectTarget == null && _analogInput == null)
                {
                    return;
                }

                if (node.objectTarget != null)
                {
                    if (node.objectTarget.Equals(_analogInput))
                    {
                        return;
                    }
                }

                _analogInput = node.objectTarget as AnalogInput;
                if (_analogInput == null)
                {
                    node.objectTarget = null;
                }

                return;
            }
            else if (node.name.Equals("dragData"))
            {
                node.updated = true;
                return;
            }
            else if (node.name.Equals("Value"))
            {
                node.updated = true;
                return;
            }

            base.UpdateNode(node);
        }