Ejemplo n.º 1
0
    void OnEnable()
    {
        //Debug.Log("UniOSCCodeBasedDemo.OnEnable");

        //Just to create a OSCEventTarget isn't enough. We nedd to enable it:

        oscTarget1.Enable();

        oscTarget2.Enable();

        oscTarget3.Enable();

        oscTarget4.Enable();

        oscTarget5.Enable();


        oscDispatcher1.Enable();

        oscDispatcher2.Enable();
        //just a test to show that you can clear and add data (is overwritten with 0 and 1 at Update())
        oscDispatcher2.ClearData();
        oscDispatcher2.AppendData("TEST2");
        oscDispatcher2.AppendData("TEST2.1");

        // We want sent continuously data so start our timer to set a flag at a given interval
        // The interval is in milliseconds.
        StartSendIntervalTimer();
    }
Ejemplo n.º 2
0
 void OnEnable()
 {
     oscDispatcher1.Enable();             // enable it.
     oscDispatcher1.SetBundleMode(true);
     oscDispatcher1.ClearData();          // clear data just in case.
 }