mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
This commit is contained in:
@@ -101,7 +101,7 @@ namespace TEngine
|
||||
_errorLogger.Dispose();
|
||||
_errorLogger = null;
|
||||
}
|
||||
CloseAll();
|
||||
CloseAll(isShutDown:true);
|
||||
if (m_InstanceRoot != null && m_InstanceRoot.parent != null)
|
||||
{
|
||||
Destroy(m_InstanceRoot.parent.gameObject);
|
||||
@@ -393,12 +393,12 @@ namespace TEngine
|
||||
/// <summary>
|
||||
/// 关闭所有窗口。
|
||||
/// </summary>
|
||||
public void CloseAll()
|
||||
public void CloseAll(bool isShutDown = false)
|
||||
{
|
||||
for (int i = 0; i < _stack.Count; i++)
|
||||
{
|
||||
UIWindow window = _stack[i];
|
||||
window.InternalDestroy();
|
||||
window.InternalDestroy(isShutDown);
|
||||
}
|
||||
|
||||
_stack.Clear();
|
||||
|
@@ -370,7 +370,7 @@ namespace TEngine
|
||||
return needUpdate;
|
||||
}
|
||||
|
||||
internal void InternalDestroy()
|
||||
internal void InternalDestroy(bool isShutDown = false)
|
||||
{
|
||||
_isCreate = false;
|
||||
|
||||
@@ -394,7 +394,11 @@ namespace TEngine
|
||||
Object.Destroy(_panel);
|
||||
_panel = null;
|
||||
}
|
||||
CancelHideToCloseTimer();
|
||||
|
||||
if (!isShutDown)
|
||||
{
|
||||
CancelHideToCloseTimer();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user