修复脚本bug

This commit is contained in:
shenjianxing 2025-01-02 10:19:41 +08:00
parent 8e86da4115
commit c40affec6c
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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;