设备连接界面完善
This commit is contained in:
1 parent
3a360d3437
commit
cdccd78602
11 files changed
+1754
-517
No files matched your search
@@ -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()));
|
||||
|
||||
Reference in new issue
Block a user