【战斗】修复战斗结束后立刻再进入战斗会报错卡死
parent
b5750526b2
commit
064505813a
|
@ -16,6 +16,7 @@ this.momItems = {}
|
|||
|
||||
function this.Init(poolRoot)
|
||||
this.root = poolRoot
|
||||
this.momItems = {}
|
||||
end
|
||||
|
||||
function this.Register(type, item)
|
||||
|
@ -69,13 +70,13 @@ function this.Clear()
|
|||
end)
|
||||
end
|
||||
this.pool = {}
|
||||
end
|
||||
|
||||
-- 销毁对象池
|
||||
function this.Destroy()
|
||||
this.Clear()
|
||||
this.momItems = {}
|
||||
end
|
||||
|
||||
-- 销毁对象池
|
||||
-- function this.Destroy()
|
||||
-- this.Clear()
|
||||
-- end
|
||||
|
||||
|
||||
return BattlePool
|
|
@ -1032,7 +1032,7 @@ function this:OnDestroy()
|
|||
|
||||
SubUIManager.Close(this.ElementalResonanceView)
|
||||
SubUIManager.Close(this.ElementalResonanceView2)
|
||||
BattlePool.Destroy()
|
||||
-- BattlePool.Destroy()
|
||||
-- 回收所有延迟资源
|
||||
BattleManager.RecycleAllDelayRes()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue