Procházet zdrojové kódy

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

slambb před 1 rokem
rodič
revize
7009767558
1 změnil soubory, kde provedl 9 přidání a 2 odebrání
  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>();