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