Пример #1
0
        public static int RecvLen()
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            return(BtBridge_Win.RecvLen());
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
#elif UNITY_ANDROID
#elif UNITY_IOS
#endif
        }
Пример #2
0
        public static int Send(byte[] msg)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            return(BtBridge_Win.Send(msg));
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
#elif UNITY_ANDROID
#elif UNITY_IOS
#endif
        }
Пример #3
0
        public static void Cleanup()
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            BtBridge_Win.Cleanup();
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
#elif UNITY_ANDROID
#elif UNITY_IOS
#endif
        }
Пример #4
0
        /* Variables */

        /* Setter & Getter */

        /* Functions */

        public static int Connect(long btAddr)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            return(BtBridge_Win.Connect(btAddr));
#elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
#elif UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
#elif UNITY_ANDROID
#elif UNITY_IOS
#endif
        }