【内存优化】挂机地图不再回收资源,修改未加入公会时点击公会按钮界面错误的问题

dev_chengFeng
gaoxin 2021-04-21 18:23:00 +08:00
parent 3819869e27
commit a6dadba241
2 changed files with 8 additions and 2 deletions

View File

@ -144,7 +144,7 @@ function this.SetSpriteBG(sprite)
end end
function this.Exit() function this.Exit()
this.spLoader:Destroy() -- this.spLoader:Destroy()
_tileLivePool = nil _tileLivePool = nil
_tileClearPool = nil _tileClearPool = nil
ViewCamera = nil ViewCamera = nil

View File

@ -99,6 +99,10 @@ function this:OpenCarbon()
end end
function this:OpenGuild() function this:OpenGuild()
JumpManager.GoJump(4001) JumpManager.GoJump(4001)
-- 如果有公会才修改
if PlayerManager.familyId ~= 0 then
_CurPanel = UIName.GuildMainCityPanel
end
end end
function this:OpenVIP() function this:OpenVIP()
UIManager.OpenPanel(UIName.VipPanelV2) UIManager.OpenPanel(UIName.VipPanelV2)
@ -213,7 +217,9 @@ function this:OnBtnClick(pt)
local isOpen = self:CheckIsOpen(pt) local isOpen = self:CheckIsOpen(pt)
if isOpen then if isOpen then
-- 关闭当前界面 -- 关闭当前界面
if pt ~= PanelTypeView.GongHui or PlayerManager.familyId ~= 0 then
this:CloseCurPanel() this:CloseCurPanel()
end
-- 打开新界面 -- 打开新界面
local btnFunc = self._BtnConfig[pt].clickFunc local btnFunc = self._BtnConfig[pt].clickFunc
if btnFunc then if btnFunc then