From bb92a849b0ef54e385f1ed438d841186a107f88f Mon Sep 17 00:00:00 2001 From: CroakFang <1605296300@qq.com> Date: Tue, 1 Aug 2023 08:56:20 +0800 Subject: [PATCH] bug fix --- .../Gallop/Live/Cutt/LiveTimelineControl.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs index d0e5d90..1b9d4fc 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Cutt/LiveTimelineControl.cs @@ -323,8 +323,8 @@ namespace Gallop.Live.Cutt LiveTimelineWorkSheet workSheet = data.worksheetList[0]; _isNowAlterUpdate = true; Vector3 outLookAt = Vector3.zero; - AlterUpdate_CameraSwitcher(workSheet, _currentFrame); AlterLateUpdate_FormationOffset(currentLiveTime); + AlterUpdate_CameraSwitcher(workSheet, _currentFrame); AlterUpdate_CameraPos(workSheet, _currentFrame); AlterUpdate_CameraLookAt(workSheet, _currentFrame, ref outLookAt); AlterUpdate_CameraFov(workSheet, _currentFrame); @@ -614,16 +614,16 @@ namespace Gallop.Live.Cutt { float ratio = CalculateInterpolationValue(curKey, nextKey, time * 60); chara.transform.localPosition = Vector3.Lerp(curKey.Position, nextKey.Position, ratio); - var x = chara.Position.localEulerAngles.x; - var z = chara.Position.localEulerAngles.z; - chara.Position.localEulerAngles = new Vector3(x, Mathf.Lerp(curKey.LocalRotationY, nextKey.LocalRotationY, ratio), z); + var x = chara.transform.eulerAngles.x; + var z = chara.transform.eulerAngles.z; + chara.transform.eulerAngles = new Vector3(x, Mathf.Lerp(curKey.RotationY, nextKey.RotationY, ratio), z); } else { chara.transform.localPosition = curKey.Position; - var x = chara.Position.localEulerAngles.x; - var z = chara.Position.localEulerAngles.z; - chara.Position.localEulerAngles = new Vector3(x, curKey.LocalRotationY, z); + var x = chara.transform.eulerAngles.x; + var z = chara.transform.eulerAngles.z; + chara.transform.eulerAngles = new Vector3(x, curKey.RotationY, z); } } }