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