From c40affec6c11c66e38406318da974b7a23c53bec Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Thu, 2 Jan 2025 10:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Actions/AnimationAction.cs | 1 + Assets/Scripts/TimeScaleController.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Actions/AnimationAction.cs b/Assets/Scripts/Actions/AnimationAction.cs index 5a9691af..103cffbd 100644 --- a/Assets/Scripts/Actions/AnimationAction.cs +++ b/Assets/Scripts/Actions/AnimationAction.cs @@ -54,6 +54,7 @@ namespace QFramework { int curFrame = 0; int.TryParse(frame, out curFrame); + anim.clip = anim[animName].clip; anim[animName].time = curFrame / anim.clip.frameRate; anim[animName].speed = 0; anim.Play(animName); diff --git a/Assets/Scripts/TimeScaleController.cs b/Assets/Scripts/TimeScaleController.cs index 8699dd02..7154704b 100644 --- a/Assets/Scripts/TimeScaleController.cs +++ b/Assets/Scripts/TimeScaleController.cs @@ -34,7 +34,7 @@ public class TimeScaleController : MonoBehaviour #if UNITY_WEBGL if (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightControl)) { - if (Input.GetKeyDown(KeyCode.W)) + if (Input.GetKeyDown(KeyCode.A)) { Debug.Log("Ctrl + W £"); string str = string.Empty;