调整编辑器模式下模块销毁顺序,解决编辑器退出运行后资源管理器销毁了还被调用问题

This commit is contained in:
sxb1067
2024-05-20 11:25:01 +08:00
parent db6e715fa6
commit f11098d32e
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>