修改报错位置

PC-202302260912\Administrator 2025-02-19 19:05:34 +08:00
parent a302f27844
commit e37673657a
1 changed files with 4 additions and 0 deletions

View File

@ -1064,6 +1064,10 @@ function RoleInfoPanel:OnClose()
poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj) poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj)
this.curLiveObj = nil this.curLiveObj = nil
end end
if this.bgLive then
poolManager:UnLoadLive(this.bgLive.name, this.bgLive)
this.bgLive = nil
end
this.leftBtn:GetComponent("Button").enabled = true this.leftBtn:GetComponent("Button").enabled = true
this.rightBtn:GetComponent("Button").enabled = true this.rightBtn:GetComponent("Button").enabled = true
Util.ClearChild(this.curObj.transform) Util.ClearChild(this.curObj.transform)