Esempio n. 1
0
 /// <summary>
 /// Connects the OSC out.
 /// </summary>
 public void ConnectOSCOut()
 {
     //Debug.Log("UniOSCConnection.ConnectOSCOut");
     _CreateConnectionOut();
     if (_oscTransmitter == null)
     {
         _connectedOut  = false;
         dispatchOSCOut = false;
     }
     else
     {
         bool isConnected = _oscTransmitter.Connect();
         _connectedOut  = isConnected;
         dispatchOSCOut = isConnected;
         if (isConnected && ConnectionOutStatusChange != null)
         {
             ConnectionOutStatusChange(this);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Connects the OSC out.
 /// </summary>
 public void ConnectOSCOut()
 {
     //Debug.Log("ConnectOSCOut");
     _CreateConnectionOut();
     if (_oscTransmitter == null)
     {
         //No Connection
         Debug.LogWarning("No Valid IP Address for OSC Out! Please check your settings!");
         _connectedOut  = false;
         dispatchOSCOut = false;
     }
     else
     {
         _oscTransmitter.Connect();
         _connectedOut  = true;
         dispatchOSCOut = true;
         if (ConnectionOutStatusChange != null)
         {
             ConnectionOutStatusChange(this);
         }
     }
 }