zhangjiannan 2025-02-11 15:00:34 +08:00
parent 434b7dce45
commit 7890642221
1 changed files with 8 additions and 0 deletions

View File

@ -314,5 +314,13 @@ function FirstRechargePanel:OnClose()
-- this.Onelive = nil
-- end
end
--界面销毁时调用(用于子类重写)
function FirstRechargePanel:OnDestroy()
if this.liveNode then
UnLoadHerolive(this.heroData, this.liveNode)
Util.ClearChild(this.lihui.transform)
this.liveNode = nil
end
end
return FirstRechargePanel