Update UIWindow.cs

This commit is contained in:
ALEXTANG
2023-07-25 23:34:42 +08:00
parent 1c223c8ad0
commit 74790c7486

View File

@@ -354,10 +354,11 @@ namespace TEngine
Handle = null;
}
OnDestroy();
// 销毁面板对象
if (_panel != null)
{
OnDestroy();
Object.Destroy(_panel);
_panel = null;
}