速度快捷键

This commit is contained in:
shenjianxing 2024-12-30 11:42:27 +08:00
parent 86e495f5dd
commit 1682a2351b

View File

@ -13,6 +13,22 @@ public class TimeScaleController : MonoBehaviour
private void Update()
{
Time.timeScale = animSpeed;
if (Input.GetKeyUp(KeyCode.F8))
{
animSpeed++;
}
if (Input.GetKeyUp(KeyCode.F7))
{
animSpeed--;
}
if (Input.GetKeyUp(KeyCode.F12))
{
animSpeed = 1;
}
if (Input.GetKeyUp(KeyCode.F11))
{
animSpeed = 0;
}
}
#endif
}