parent
77934cd274
commit
ca1a509cb8
|
@ -879,6 +879,10 @@ end
|
|||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function this:OnClose()
|
||||
|
||||
-- 回收所有延迟资源
|
||||
BattleManager.RecycleAllDelayRes()
|
||||
|
||||
|
||||
FixedUpdateBeat:Remove(this.OnUpdate, self)
|
||||
for _, v in pairs(tbRoleDispose) do
|
||||
|
@ -896,9 +900,6 @@ function this:OnClose()
|
|||
end
|
||||
delayRecycleList[k] = nil
|
||||
end
|
||||
|
||||
-- 回收所有延迟资源
|
||||
BattleManager.RecycleAllDelayRes()
|
||||
|
||||
BattlePool.Clear()
|
||||
poolManager:ClearPool()
|
||||
|
@ -911,6 +912,7 @@ function this:OnClose()
|
|||
BattleManager.StopBattle()
|
||||
|
||||
this.ClearBattleEvent()
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue