From 86e495f5ddd5ea80a0adb5d0d3eacf05533dd31d Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Mon, 30 Dec 2024 10:40:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/Xml配置文档.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/Xml配置文档.xml b/Doc/Xml配置文档.xml index ae669757..bd79d5cf 100644 --- a/Doc/Xml配置文档.xml +++ b/Doc/Xml配置文档.xml @@ -17,8 +17,8 @@ - - + + 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 2/2] =?UTF-8?q?=E9=80=9F=E5=BA=A6=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=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 }