示例#1
0
 public void Link()
 {
     channel  = GetInputPort("channel").GetInputValue <OSC.IChannel>();
     animator = GetInputPort("animator").GetInputValue <Animator>();
     if (parameter != null)
     {
         parameter.input = channel;
     }
 }
示例#2
0
 public override void OnRemoveConnection(NodePort port)
 {
     if (port.fieldName == "animator")
     {
         animator = null;
     }
     if (port.fieldName == "channel")
     {
         channel = null;
     }
 }
示例#3
0
 public override void OnCreateConnection(NodePort from, NodePort to)
 {
     if (to.fieldName == "animator")
     {
         animator = GetInputPort("animator").GetInputValue <Animator>();
     }
     if (to.fieldName == "channel")
     {
         channel = GetInputPort("channel").GetInputValue <OSC.IChannel>();
     }
     if (parameter != null)
     {
         parameter.input = channel;
     }
 }