public void SendOSCMessage(string address, Vector2 vec2)
 {
     UnityOSC.OSCMessage newMsg = new UnityOSC.OSCMessage(address);
     newMsg.AppendFloat(vec2.x);
     newMsg.AppendFloat(vec2.y);
     SendMessageToAllClients(newMsg);
 }
 public void OutputCurrentState()
 {
     foreach (OSCInputMapping map in m_OSCInputMappings)
     {
         try
         {
             if (map.m_AssignmentType == "Property" && map.m_FeedbackState)
             {
                 float val = map.GetCurrentValue();
                 if (val != float.MinValue)
                 {
                     string address          = map.m_MapAddress;
                     UnityOSC.OSCMessage msg = new UnityOSC.OSCMessage(address);
                     msg.AppendFloat(val);
                     OSCHandler.Instance.SendOSCMessage(msg);
                 }
             }
         }
         catch (Exception e)
         {
             MonoBehaviour.print(e.ToString());
         }
     }
 }