From f11098d32e44b718474d82043b3178d88c53c2ea Mon Sep 17 00:00:00 2001 From: sxb1067 Date: Mon, 20 May 2024 11:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=A8=A1=E5=9D=97=E9=94=80=E6=AF=81?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E9=80=80=E5=87=BA=E8=BF=90=E8=A1=8C=E5=90=8E=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=AE=A1=E7=90=86=E5=99=A8=E9=94=80=E6=AF=81=E4=BA=86?= =?UTF-8?q?=E8=BF=98=E8=A2=AB=E8=B0=83=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs | 1 + UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs b/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs index 5b9a6ef3..8ef135bb 100644 --- a/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs @@ -194,6 +194,7 @@ namespace TEngine { if (state == PlayModeStateChange.ExitingPlayMode) { + ModuleImpSystem.Shutdown(); ModuleSystem.Shutdown(ShutdownType.Quit); } } diff --git a/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs b/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs index b0372d1b..b20b90c1 100644 --- a/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs @@ -154,7 +154,9 @@ namespace TEngine private void OnDestroy() { +#if UNITY_EDITOR ModuleImpSystem.Shutdown(); +#endif } ///