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.Dispose();
|
||||||
_errorLogger = null;
|
_errorLogger = null;
|
||||||
}
|
}
|
||||||
CloseAll();
|
CloseAll(isShutDown:true);
|
||||||
if (m_InstanceRoot != null && m_InstanceRoot.parent != null)
|
if (m_InstanceRoot != null && m_InstanceRoot.parent != null)
|
||||||
{
|
{
|
||||||
Destroy(m_InstanceRoot.parent.gameObject);
|
Destroy(m_InstanceRoot.parent.gameObject);
|
||||||
@@ -393,12 +393,12 @@ namespace TEngine
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 关闭所有窗口。
|
/// 关闭所有窗口。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void CloseAll()
|
public void CloseAll(bool isShutDown = false)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < _stack.Count; i++)
|
for (int i = 0; i < _stack.Count; i++)
|
||||||
{
|
{
|
||||||
UIWindow window = _stack[i];
|
UIWindow window = _stack[i];
|
||||||
window.InternalDestroy();
|
window.InternalDestroy(isShutDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
_stack.Clear();
|
_stack.Clear();
|
||||||
|
@@ -370,7 +370,7 @@ namespace TEngine
|
|||||||
return needUpdate;
|
return needUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void InternalDestroy()
|
internal void InternalDestroy(bool isShutDown = false)
|
||||||
{
|
{
|
||||||
_isCreate = false;
|
_isCreate = false;
|
||||||
|
|
||||||
@@ -394,7 +394,11 @@ namespace TEngine
|
|||||||
Object.Destroy(_panel);
|
Object.Destroy(_panel);
|
||||||
_panel = null;
|
_panel = null;
|
||||||
}
|
}
|
||||||
CancelHideToCloseTimer();
|
|
||||||
|
if (!isShutDown)
|
||||||
|
{
|
||||||
|
CancelHideToCloseTimer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Reference in New Issue
Block a user