Merge pull request #75 from SunXuebing/main

调整编辑器模式下模块销毁顺序,解决编辑器退出运行后资源管理器销毁了还被调用问题
This commit is contained in:
ALEXTANG
2024-05-20 14:17:40 +08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ namespace TEngine
{
if (state == PlayModeStateChange.ExitingPlayMode)
{
ModuleImpSystem.Shutdown();
ModuleSystem.Shutdown(ShutdownType.Quit);
}
}

View File

@@ -154,7 +154,9 @@ namespace TEngine
private void OnDestroy()
{
#if !UNITY_EDITOR
ModuleImpSystem.Shutdown();
#endif
}
/// <summary>