mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
UIModule关闭的倒计时应该先进行判断原计时器是否销毁,避免多次Hide导致计时器多次添加
This commit is contained in:
@@ -407,6 +407,7 @@ namespace GameLogic
|
|||||||
|
|
||||||
window.Visible = false;
|
window.Visible = false;
|
||||||
window.IsHide = true;
|
window.IsHide = true;
|
||||||
|
window.CancelHideToCloseTimer();
|
||||||
window.HideTimerId = GameModule.Timer.AddTimer((arg) =>
|
window.HideTimerId = GameModule.Timer.AddTimer((arg) =>
|
||||||
{
|
{
|
||||||
CloseUI(type);
|
CloseUI(type);
|
||||||
|
Reference in New Issue
Block a user