tcx_xiyou_yueNan
parent
d851e761c3
commit
01fda11260
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue