Exemple #1
0
    public static void UnSubscribe(string Serial, string SubscriptionPath)
    {
                #pragma warning disable CS0162
        if (isLogging)
        {
            Debug.Log(TAG + "UnSubscribe: " + Serial + ", SubscriptionPath: " + SubscriptionPath);
        }
                #pragma warning restore CS0162

                #if UNITY_ANDROID && !UNITY_EDITOR
        MovesenseDevice.GetSubscription(Serial, SubscriptionPath).Call("unsubscribe");
        MovesenseDevice.RemoveSubscription(Serial, SubscriptionPath);
                #elif UNITY_IOS && !UNITY_EDITOR
        // Debug.Log(TAG + "GetSubscription: " + MovesenseDevice.GetSubscription(Serial, SubscriptionPath));
        UnSubscribeMDS(Serial, MovesenseDevice.GetSubscription(Serial, SubscriptionPath));
        MovesenseDevice.RemoveSubscription(Serial, SubscriptionPath);
                #elif UNITY_STANDALONE_OSX || UNITY_EDITOR
                #endif
    }