Ejemplo n.º 1
0
    void Start()
    {
        APP_WIDTH  = Camera.main.pixelWidth;
        APP_HEIGHT = Camera.main.pixelHeight;

        //Debug.Log("Sarting OSC receiver");
        oscReceiver = new OSCReceiverAsync(port);
        oscReceiver.Start(processOSCPacket);
    }
Ejemplo n.º 2
0
    void Start()
    {
        localIpAdress = GetLocalIPAddress();

        sender   = new OSCTransmitter(targetIp, port);
        receiver = new OSCReceiverAsync(port);

        sender.Connect();
        receiver.Connect();
        receiver.Start(OnReceivedMessage);
    }