소스 검색

蓝牙regex问题

slambb 1 주 전
부모
커밋
502ba66167
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. BIN
      Assets/AddressableAssetsData/Android/addressables_content_state.bin
  2. 5 5
      Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

BIN
Assets/AddressableAssetsData/Android/addressables_content_state.bin


+ 5 - 5
Assets/BowArrow/Scripts/Bluetooth/BluetoothAim.cs

@@ -1839,23 +1839,23 @@ public class BluetoothAim : MonoBehaviour
                 Log("1P设备类型:" + firstPlayerType);
                 if (firstPlayerType == (int)AimDeviceType.HOUYIPRO)
                 {   //需要判断是否是红外弓箭
-                    ToRegex(targetDeviceNameHOUYIPro);
+                    regex = ToRegex(targetDeviceNameHOUYIPro);
                 }
                 else if (firstPlayerType == (int)AimDeviceType.ARTEMISPRO)
                 {   //需要判断是否是ARTEMISPro弓箭
-                    ToRegex(targetDeviceNameARTEMISPro);
+                    regex = ToRegex(targetDeviceNameARTEMISPro);
                 }
                 else if (firstPlayerType == (int)AimDeviceType.Gun)
                 {
-                    ToRegex(targetDeviceNameGun);
+                    regex = ToRegex(targetDeviceNameGun);
                 }
                 else if (firstPlayerType == (int)AimDeviceType.PistolM17)
                 {
-                    ToRegex(targetDeviceNameGun_M17);
+                    regex = ToRegex(targetDeviceNameGun_M17);
                 }
                 else if (firstPlayerType == (int)AimDeviceType.RifleM416)
                 {
-                    ToRegex(targetDeviceNameGun_M416);
+                    regex = ToRegex(targetDeviceNameGun_M416);
                 }
                 SmartBowLogger.Log(this, $"CMD StartScan:{regex}");
                 cmdManager.StartScan(regex);