tcx_xiyou_yueNan
zhangjiannan 2025-04-28 16:39:51 +08:00
parent d851e761c3
commit 01fda11260
1 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,7 @@ local str = {
"..",
"...",
}
local tryTimes = 0
local lastRealTime = 0
local isShow = false
function RequestPanel:Update()
@ -37,6 +37,10 @@ function RequestPanel:InitComponent()
if index > 3 then
index = 1
end
tryTimes = tryTimes + 1
if tryTimes > 20 then
RequestPanel.Hide()
end
end, 0.3, -1)
end
@ -52,7 +56,7 @@ function RequestPanel.Show(msg)
RequestPanel.text.text = msg
RequestPanel.root:SetActive(false)
RequestPanel.time:Stop()
tryTimes = 0
lastRealTime = Time.realtimeSinceStartup
isShow = false
end