mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
调整编辑器模式下模块销毁顺序,解决编辑器退出运行后资源管理器销毁了还被调用问题
This commit is contained in:
@@ -194,6 +194,7 @@ namespace TEngine
|
|||||||
{
|
{
|
||||||
if (state == PlayModeStateChange.ExitingPlayMode)
|
if (state == PlayModeStateChange.ExitingPlayMode)
|
||||||
{
|
{
|
||||||
|
ModuleImpSystem.Shutdown();
|
||||||
ModuleSystem.Shutdown(ShutdownType.Quit);
|
ModuleSystem.Shutdown(ShutdownType.Quit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -154,7 +154,9 @@ namespace TEngine
|
|||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
ModuleImpSystem.Shutdown();
|
ModuleImpSystem.Shutdown();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user