Ejemplo n.º 1
0
    /// <summary>
    /// Register a delegate to be called when connected to the Tango Android service.
    /// </summary>
    /// <param name="onConnected">Delegate to get called.</param>
    internal static void RegisterOnTangoServiceConnected(OnTangoServiceConnected onConnected)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        if (m_tangoServiceLifecycle == null)
        {
            _RegisterTangoServiceLifecycle();
        }

        m_tangoServiceLifecycle.m_onTangoServiceConnected += onConnected;
#endif
    }
    /// <summary>
    /// Register a delegate to be called when connected to the Tango Android service.
    /// </summary>
    /// <param name="onConnected">Delegate to get called.</param>
    internal static void RegisterOnTangoServiceConnected(OnTangoServiceConnected onConnected)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        if (m_tangoServiceLifecycle == null)
        {
            _RegisterTangoServiceLifecycle();
        }

        m_tangoServiceLifecycle.m_onTangoServiceConnected += onConnected;
#endif
    }