Ver código fonte

设备连接检测开启

lvjincheng 4 anos atrás
pai
commit
520487da0d

+ 2 - 3
Assets/BowArrow/Scripts/Bluetooth/BluetoothStatus.cs

@@ -21,9 +21,8 @@ public class BluetoothStatus
 
     public static bool IsAllConnected()
     {
-        if (!BluetoothAim.ins || !BluetoothShoot.ins) return false;
-        return BluetoothAim.ins.status == BluetoothStatusEnum.ConnectSuccess && 
-        BluetoothShoot.ins.status == BluetoothStatusEnum.ConnectSuccess; 
+        if (!BluetoothAim.ins) return false;
+        return BluetoothAim.ins.status == BluetoothStatusEnum.ConnectSuccess; 
     }
 }
 

+ 1 - 1
Assets/BowArrow/Scripts/View/DeviceReconnectView.cs

@@ -39,7 +39,7 @@ public class DeviceReconnectView : MonoBehaviour
         GameMgr.ins.addLockerForGamePause(this);
 
         //用于测试阶段,暂时屏蔽该页面
-        Destroy(this.gameObject); if (onComplete != null) onComplete();
+        // Destroy(this.gameObject); if (onComplete != null) onComplete();
     }
 
     void OnDestroy()