diff --git a/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs b/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs index 5b9a6ef36..8ef135bb6 100644 --- a/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Modules/GameModule.cs @@ -194,6 +194,7 @@ void HandlePlayModeStateChanged(PlayModeStateChange state) { 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 b0372d1bf..77388fdca 100644 --- a/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs +++ b/UnityProject/Assets/TEngine/Runtime/Modules/RootModule.cs @@ -154,7 +154,9 @@ private void OnApplicationQuit() private void OnDestroy() { +#if !UNITY_EDITOR ModuleImpSystem.Shutdown(); +#endif } ///