Exemplo n.º 1
0
 public void Receive(Variable value, Input _input)
 {
     if (OSCManager.OSC != null)
     {
         OSCComponent.OscMessage message = new OSCComponent.OscMessage();
         message.address = ChannelName.Value.GetString();
         message.values.Add(value.GetFloat());
         OSCManager.OSC.Send(message);
     }
 }
        public const string NAME = "OSCReceive"; //Setting the node name (need to be a const to be used in the factory without the node instantiated)

        void OnReceive(OSCComponent.OscMessage message)
        {
            sender.Send(new Variable(message.GetFloat(0)), 0);
        }