修复脚本bug
This commit is contained in:
parent
8e86da4115
commit
c40affec6c
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user