void Start() { APP_WIDTH = Camera.main.pixelWidth; APP_HEIGHT = Camera.main.pixelHeight; //Debug.Log("Sarting OSC receiver"); oscReceiver = new OSCReceiverAsync(port); oscReceiver.Start(processOSCPacket); }
void Start() { localIpAdress = GetLocalIPAddress(); sender = new OSCTransmitter(targetIp, port); receiver = new OSCReceiverAsync(port); sender.Connect(); receiver.Connect(); receiver.Start(OnReceivedMessage); }