SkyUpdatement已更新

This commit is contained in:
2025-11-12 10:18:50 +08:00
parent caa6d765db
commit 24b30054e5
3 changed files with 26 additions and 3 deletions

View File

@@ -364,7 +364,8 @@ namespace Demo.Game
}
finally
{
Destroy(MainObject.gameObject);
if (MainObject)
Destroy(MainObject.gameObject);
if (Editor.EditorController.instance.MainGameController == this)
{
Editor.EditorController.instance.MainGameController = null;