Merge remote-tracking branch 'origin/master' into LouDi_Pig

This commit is contained in:
李浩 2024-12-30 11:59:28 +08:00
commit e5ce49d0e0

View File

@ -13,6 +13,22 @@ public class TimeScaleController : MonoBehaviour
private void Update() private void Update()
{ {
Time.timeScale = animSpeed; 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 #endif
} }