tcx_xiyou_yueNan
parent
d851e761c3
commit
01fda11260
|
@ -8,7 +8,7 @@ local str = {
|
||||||
"..",
|
"..",
|
||||||
"...",
|
"...",
|
||||||
}
|
}
|
||||||
|
local tryTimes = 0
|
||||||
local lastRealTime = 0
|
local lastRealTime = 0
|
||||||
local isShow = false
|
local isShow = false
|
||||||
function RequestPanel:Update()
|
function RequestPanel:Update()
|
||||||
|
@ -37,6 +37,10 @@ function RequestPanel:InitComponent()
|
||||||
if index > 3 then
|
if index > 3 then
|
||||||
index = 1
|
index = 1
|
||||||
end
|
end
|
||||||
|
tryTimes = tryTimes + 1
|
||||||
|
if tryTimes > 20 then
|
||||||
|
RequestPanel.Hide()
|
||||||
|
end
|
||||||
end, 0.3, -1)
|
end, 0.3, -1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -52,7 +56,7 @@ function RequestPanel.Show(msg)
|
||||||
RequestPanel.text.text = msg
|
RequestPanel.text.text = msg
|
||||||
RequestPanel.root:SetActive(false)
|
RequestPanel.root:SetActive(false)
|
||||||
RequestPanel.time:Stop()
|
RequestPanel.time:Stop()
|
||||||
|
tryTimes = 0
|
||||||
lastRealTime = Time.realtimeSinceStartup
|
lastRealTime = Time.realtimeSinceStartup
|
||||||
isShow = false
|
isShow = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue