【内存优化】挂机地图不再回收资源,修改未加入公会时点击公会按钮界面错误的问题
parent
3819869e27
commit
a6dadba241
|
@ -144,7 +144,7 @@ function this.SetSpriteBG(sprite)
|
|||
end
|
||||
|
||||
function this.Exit()
|
||||
this.spLoader:Destroy()
|
||||
-- this.spLoader:Destroy()
|
||||
_tileLivePool = nil
|
||||
_tileClearPool = nil
|
||||
ViewCamera = nil
|
||||
|
|
|
@ -99,6 +99,10 @@ function this:OpenCarbon()
|
|||
end
|
||||
function this:OpenGuild()
|
||||
JumpManager.GoJump(4001)
|
||||
-- 如果有公会才修改
|
||||
if PlayerManager.familyId ~= 0 then
|
||||
_CurPanel = UIName.GuildMainCityPanel
|
||||
end
|
||||
end
|
||||
function this:OpenVIP()
|
||||
UIManager.OpenPanel(UIName.VipPanelV2)
|
||||
|
@ -213,7 +217,9 @@ function this:OnBtnClick(pt)
|
|||
local isOpen = self:CheckIsOpen(pt)
|
||||
if isOpen then
|
||||
-- 关闭当前界面
|
||||
this:CloseCurPanel()
|
||||
if pt ~= PanelTypeView.GongHui or PlayerManager.familyId ~= 0 then
|
||||
this:CloseCurPanel()
|
||||
end
|
||||
-- 打开新界面
|
||||
local btnFunc = self._BtnConfig[pt].clickFunc
|
||||
if btnFunc then
|
||||
|
|
Loading…
Reference in New Issue