|
|
@@ -333,19 +333,21 @@ public class AimDeviceInfos
|
|
|
}
|
|
|
else if (bytes[0] == 0x5b)
|
|
|
{
|
|
|
- if (GlobalData.MyDeviceMode == DeviceMode.Gun) {
|
|
|
-
|
|
|
- if (Time.realtimeSinceStartup - _lastShootTime < 1) return;
|
|
|
- _lastShootTime = Time.realtimeSinceStartup;
|
|
|
- //流程触发红外描点
|
|
|
- InfraredScreenPositioningView infraredScreenPositioningView = FindAnyObjectByType<InfraredScreenPositioningView>();
|
|
|
- if (infraredScreenPositioningView)
|
|
|
+ if (GlobalData.MyDeviceMode == DeviceMode.Gun)
|
|
|
+ {
|
|
|
+ if (Time.realtimeSinceStartup - _lastShootTime >= 1)
|
|
|
{
|
|
|
- InvokeOnCrossBtnEvent();
|
|
|
+ _lastShootTime = Time.realtimeSinceStartup;
|
|
|
+
|
|
|
+ InfraredScreenPositioningView view = FindAnyObjectByType<InfraredScreenPositioningView>();
|
|
|
+ if (view)
|
|
|
+ {
|
|
|
+ InvokeOnCrossBtnEvent();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //红外射击检测
|
|
|
+ // 无论如何都执行红外射击检测
|
|
|
ShootCheck.ins.ShootByInfrared(bytes);
|
|
|
}
|
|
|
else if (bytes[0] == 0x5C)
|