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 }
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 }
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 }
/* 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 }