Ejemplo n.º 1
0
 public void OnEnable()
 {
     if (oscPort == null)
     {
         OSCPort port = (OSCPort)Object.FindObjectOfType(typeof(OSCPort));
         if (port == null)
         {
             Debug.Log("Warning: no OSC input port found automatically, not able to suppress anything!");
         }
         else
         {
             oscPort = port;
             if (oscPort.shouldWarnIfAutodetected())
             {
                 Debug.Log("External trigger suppressor missing OSC input port, searching for anything - Found OSC port on port " + oscPort.getPort());
             }
         }
     }
     updateListenerRegistration();
 }
Ejemplo n.º 2
0
    public void OnEnable()
    {
        client = this.GetComponent <SoundOMaticClient>();

        if (oscPort == null)
        {
            OSCPort port = (OSCPort)Object.FindObjectOfType(typeof(OSCPort));
            if (port == null)
            {
                Debug.Log("Warning: no OSC input port found automatically, not able to control anything!", this);
            }
            else
            {
                oscPort = port;
                if (oscPort.shouldWarnIfAutodetected())
                {
                    Debug.Log("External trigger missing OSC input port, searching for anything - Found OSC port on port " + oscPort.getPort());
                }
            }
        }
        updateListenerRegistration();
    }