【战斗】修复资源回收顺序错误导致跳过战斗时黑屏的问题

dev_chengFeng hotfix/xma/local/1.1.35
gaoxin 2020-11-17 21:40:36 +08:00
parent 77934cd274
commit ca1a509cb8
1 changed files with 5 additions and 3 deletions

View File

@ -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