| 1234567891011121314151617181920 |
- using System;
- using UnityEngine;
- namespace SmartBowSDK
- {
- public class BluetoothWindows
- {
- public Func<bool> Connect;
- public Func<bool> Disconnect;
- public Func<string, bool> Write;
- public Func<byte[], bool> WriteByte;
- public Action OnConnected;
- public Action OnConnectionFailed;
- public Action<string,byte[]> OnCharacteristicChanged;
- public static bool IsWindows()
- {
- return Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor;
- }
- }
- }
|