Browse Source

Merge remote-tracking branch 'remotes/origin/master' into insertcoin

slambb 1 year ago
parent
commit
7009767558
1 changed files with 9 additions and 2 deletions
  1. 9 2
      Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

+ 9 - 2
Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

@@ -559,8 +559,15 @@ public class AimDeviceInfos
         Debug.Log("CrossBtnEvent");
         //准心开关
         InvokeOnCrossBtnEvent();
-		//b端不处理准心
-        if (CommonConfig.StandaloneModeOrPlatformB) return;
+        //b端不处理准心
+        if (CommonConfig.StandaloneModeOrPlatformB) {
+            InfraredGuider infraredGuider = FindAnyObjectByType<InfraredGuider>();
+            if (infraredGuider)
+            {
+                infraredGuider.onClickDevice();
+            }
+            return;
+        }
         if (GameAssistUI.ins)
         {
             InfraredGuider infraredGuider = FindAnyObjectByType<InfraredGuider>();