浏览代码

模拟鼠标不受timescale游戏影响

lvjincheng 4 年之前
父节点
当前提交
c53e138183
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Assets/BowArrow/Scripts/Expand/SB_EventSystem.cs

+ 1 - 1
Assets/BowArrow/Scripts/Expand/SB_EventSystem.cs

@@ -103,7 +103,7 @@ public class SB_EventSystem : MonoBehaviour
             if (!simulateMouseIsAwaked) return;
             if (hasAxisQuat) {
                 Vector3 lastAngle = nowAxisQuat.eulerAngles;
-                nowAxisQuat = Quaternion.Lerp(nowAxisQuat, targetAxisQuat, Time.deltaTime * 8f);
+                nowAxisQuat = Quaternion.Lerp(nowAxisQuat, targetAxisQuat, 0.333f * 8);
                 Vector3 curAngle = nowAxisQuat.eulerAngles;
                 float dx = FormatDeltaAngleY(curAngle.y - lastAngle.y) / 150f * simulateMouse.GetScaleScreenWidth();
                 float dy = -FormatDeltaAngleX(curAngle.x - lastAngle.x) / 100f * simulateMouse.GetScaleScreenHeight();