蓝牙停止扫描和一些bug修复

This commit is contained in:
lishuo committed 2021-08-26 19:33:43 +08:00
1 parent 0139cbc173
commit d8927ceca5
16 files changed
+137 -71

No files matched your search

@@ -90,7 +90,6 @@ public class DeviceController : PFUIPanel
protected override void Awake()
{
base.Awake();
//Debug.Log("device awake");
}
@@ -109,6 +108,7 @@ public class DeviceController : PFUIPanel
{
//UIManager.ShowHomePanel();
//UIManager.CloseModal();
App.MainDeviceAdapter.StopScan();
this.Close();
}));
//UIManager.AddEvent(mReturnBtn.gameObject, EventTriggerType.PointerUp, (e) =>
@@ -191,7 +191,9 @@ public class DeviceController : PFUIPanel
cg.alpha = 0;
base.Show();
App.MainDeviceAdapter.ClearDevice();
#if UNITY_ANDROID || UNITY_IOS
App.MainDeviceAdapter.StartScan();
#endif
cg.DOFade(1f, 0.3f);
}