slambb hai 1 ano
pai
achega
1b45d29ee7
Modificáronse 1 ficheiros con 9 adicións e 2 borrados
  1. 9 2
      Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

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

@@ -556,8 +556,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>();