设备连接界面完善

This commit is contained in:
lishuo committed 2021-08-31 16:27:36 +08:00
1 parent 3a360d3437
commit cdccd78602
11 files changed
+1754 -517

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ namespace Assets.Scripts.Devices
private List<DeviceAdapter> adapters = new List<DeviceAdapter>();
public MainDeviceAdapter()
{
#if UNITY_IOS || UNITY_TVOS || UNITY_ANDROID
#if UNITY_IOS || UNITY_ANDROID
this.CreateBleAdapter();
#else
this.CreateBleAdapter();
@@ -30,7 +30,7 @@ namespace Assets.Scripts.Devices
private void CreateBleAdapter()
{
#if UNITY_IOS || UNITY_TVOS || UNITY_ANDROID
#if UNITY_IOS || UNITY_ANDROID
adapters.Add(new BleDeviceAdapter(BleMobileInterface.GetInterface()));
#else
adapters.Add(new BleDeviceAdapter(BleWinHwInterface.GetInterface()));