diff --git a/Assets/ManagedResources/~Lua/Modules/Map/Logic/TileMapView.lua b/Assets/ManagedResources/~Lua/Modules/Map/Logic/TileMapView.lua index e371ccc5b8..57756a61d8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/Logic/TileMapView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/Logic/TileMapView.lua @@ -144,7 +144,7 @@ function this.SetSpriteBG(sprite) end function this.Exit() - this.spLoader:Destroy() + -- this.spLoader:Destroy() _tileLivePool = nil _tileClearPool = nil ViewCamera = nil diff --git a/Assets/ManagedResources/~Lua/View/BtView.lua b/Assets/ManagedResources/~Lua/View/BtView.lua index 63a5f16406..90a19e05ff 100644 --- a/Assets/ManagedResources/~Lua/View/BtView.lua +++ b/Assets/ManagedResources/~Lua/View/BtView.lua @@ -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