up
This commit is contained in:
@@ -440,7 +440,7 @@ function procOffLine()
|
||||
return
|
||||
end
|
||||
|
||||
-- CLAlert.add(LGet("MsgOffline"), Color.yellow, 1)
|
||||
-- CLAlert.add(LGet("MsgOffline"), Color.white, 1)
|
||||
printe(LGet("MsgOffline"))
|
||||
InvokeEx.cancelInvoke() -- 放在前面,后面马上就要用到invoke
|
||||
local ok, result = pcall(doReleaseAllRes)
|
||||
@@ -476,9 +476,9 @@ function doReleaseAllRes()
|
||||
CLLNet.stop()
|
||||
end
|
||||
|
||||
if Net.self.netGameDataQueue then
|
||||
Net.self.netGameDataQueue:Clear()
|
||||
end
|
||||
-- if Net.self and Net.self.netGameDataQueue then
|
||||
-- Net.self.netGameDataQueue:Clear()
|
||||
-- end
|
||||
|
||||
-- 页面处理
|
||||
CLPanelManager.hideAllPanel()
|
||||
@@ -512,7 +512,7 @@ function doSomethingBeforeRestart()
|
||||
if not ok then
|
||||
printe(result)
|
||||
end
|
||||
Net.self:clean()
|
||||
-- Net.self:clean()
|
||||
---@type Coolape.CLBaseLua
|
||||
local worldmap = getCC(MyMain.self.transform, "worldmap", "CLBaseLua")
|
||||
worldmap:destoryLua()
|
||||
|
||||
Reference in New Issue
Block a user