using System;
using UnityEngine;
namespace SmartBowSDK
{
///
/// 此类用于手机适配windos蓝牙的中转,相当于还是使用手机蓝牙的api来去兼容windos的操作,
/// 尽量还原原本手机代码风格操作。
///
public class BluetoothWindows
{
public Func Connect;
public Func Disconnect;
public Func Write;
public Func WriteByte;
public Action OnScanEnded;
public Action OnConnected;
public Action OnConnectionFailed;
public Action OnCharacteristicChanged;
public static bool IsWindows()
{
return Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor;
}
}
}