/// <summary> /// Connect to the Tango Service. /// </summary> private void _TangoConnect() { if (TangoServiceAPI.TangoService_connect(m_callbackContext, TangoConfig.GetConfig()) != Common.ErrorType.TANGO_SUCCESS) { DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_CRITICAL, CLASS_NAME + ".Connect() Could not connect to the Tango Service!"); } else { DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_INFO, CLASS_NAME + ".Connect() Tango client connected to service!"); } }
/// <summary> /// Connect to the Tango Service. /// </summary> private void _TangoConnect() { if (!m_isServiceConnected) { m_isServiceConnected = true; if (TangoServiceAPI.TangoService_connect(m_callbackContext, TangoConfig.GetConfig()) != Common.ErrorType.TANGO_SUCCESS) { Debug.Log(CLASS_NAME + ".Connect() Could not connect to the Tango Service!"); } else { Debug.Log(CLASS_NAME + ".Connect() Tango client connected to service!"); } } }
/// <summary> /// Connect to the Tango Service. /// </summary> private void _TangoConnect() { if (!m_isServiceConnected) { m_isServiceConnected = true; AndroidHelper.PerformanceLog("Unity _TangoConnect start"); if (TangoServiceAPI.TangoService_connect(m_callbackContext, TangoConfig.GetConfig()) != Common.ErrorType.TANGO_SUCCESS) { Debug.Log(CLASS_NAME + ".Connect() Could not connect to the Tango Service!"); } else { AndroidHelper.PerformanceLog("Unity _TangoConnect end"); Debug.Log(CLASS_NAME + ".Connect() Tango client connected to service!"); } } }