From 1682a2351bbbe319c27c4a8e82fce66b16e89529 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Mon, 30 Dec 2024 11:42:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9F=E5=BA=A6=E5=BF=AB=E6=8D=B7=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/TimeScaleController.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Assets/Scripts/TimeScaleController.cs b/Assets/Scripts/TimeScaleController.cs index 1e4272b6..95a26458 100644 --- a/Assets/Scripts/TimeScaleController.cs +++ b/Assets/Scripts/TimeScaleController.cs @@ -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 }