parent
868643f87c
commit
59577999a5
|
@ -73,7 +73,6 @@ function this.Close(sub)
|
|||
sub.lspLoader = nil
|
||||
end
|
||||
resMgr:UnLoadAsset(sub.assetName)
|
||||
LogError("sub UI close: "..sub.assetName)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -737,7 +737,6 @@ function UIManager.DelayDestroyPanel(panel)
|
|||
end
|
||||
|
||||
function UIManager.DestroyPanel(panel)
|
||||
LogError("Panel Destroy: "..panel.uiConfig.assetName)
|
||||
panel:DestroyUI()
|
||||
GameObject.Destroy(panel.gameObject)
|
||||
resMgr:UnLoadAsset(panel.uiConfig.assetName)
|
||||
|
|
|
@ -42,7 +42,6 @@ function SpriteLoader:UnLoadSprite()
|
|||
LogError("SpriteLoader Repeat UnLoad : ".. self.id..", count : "..SpriteLoaderPool[self.id])
|
||||
end
|
||||
for name, count in pairs(self.SpriteList) do
|
||||
LogWarn("lua 回收资源:name:"..name..", count:"..count)
|
||||
resMgr:UnLoadAsset(name, count)
|
||||
end
|
||||
self.SpriteList = {}
|
||||
|
|
|
@ -154,7 +154,6 @@ function this:InitComponent()
|
|||
this.mopUpGo:SetActive(false)
|
||||
|
||||
--元素共鸣
|
||||
LogError("FormationPanelV2 Init")
|
||||
this.ElementalResonanceView = SubUIManager.Open(SubUIConfig.ElementalResonanceView, this.gameObject.transform)
|
||||
end
|
||||
|
||||
|
@ -267,7 +266,6 @@ function this:OnClose()
|
|||
end
|
||||
|
||||
function this:OnDestroy()
|
||||
LogError("FormationPanelV2 OnDestroy")
|
||||
this.spLoader:Destroy()
|
||||
SubUIManager.Close(this.UpView)
|
||||
SubUIManager.Close(this.ElementalResonanceView)
|
||||
|
|
|
@ -579,7 +579,6 @@ function this.Init()
|
|||
if not sr then
|
||||
sr = go.gameObject:AddComponent(typeof(UnityEngine.SpriteRenderer))
|
||||
end
|
||||
LogWarn("Lua Load map BG:".._mapConfig[_mapId].BGPath.."_"..count)
|
||||
sr.sprite = this.spLoader:LoadSprite(_mapConfig[_mapId].BGPath.."_"..count)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue