Explorar el Código

在射箭的场景中,如果按出控制鼠标功能,角度传感器的数据就应该只给控制鼠标,原来的射箭场景要静止,不能移动

lvjincheng hace 4 años
padre
commit
d924031b9d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Assets/BowArrow/Scripts/Game/BowCamera.cs

+ 1 - 0
Assets/BowArrow/Scripts/Game/BowCamera.cs

@@ -82,6 +82,7 @@ public class BowCamera : MonoBehaviour
         else if (isTouchMode) {
             touchChecker.Update();
         } else {
+            if (SB_EventSystem.ins && SB_EventSystem.ins.simulateMouseIsAwaked) return;
             //镜头看向九轴姿态虚拟节点
             this.transform.LookAt(CameraToLook.ins.point);
         }