소스 검색

设备连接检测开启

lvjincheng 4 년 전
부모
커밋
520487da0d
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      Assets/BowArrow/Scripts/Bluetooth/BluetoothStatus.cs
  2. 1 1
      Assets/BowArrow/Scripts/View/DeviceReconnectView.cs

+ 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()