Example #1
0
 public void Link()
 {
     channel  = GetInputPort("channel").GetInputValue <OSC.IChannel>();
     animator = GetInputPort("animator").GetInputValue <Animator>();
     if (parameter != null)
     {
         parameter.input = channel;
     }
 }
Example #2
0
 public override void OnRemoveConnection(NodePort port)
 {
     if (port.fieldName == "animator")
     {
         animator = null;
     }
     if (port.fieldName == "channel")
     {
         channel = null;
     }
 }
Example #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;
     }
 }