From 064505813a7981111d8a04dfad83de2dc37a6a0c Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 13 Dec 2021 16:25:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=88=98=E6=96=97=E7=BB=93=E6=9D=9F=E5=90=8E=E7=AB=8B?= =?UTF-8?q?=E5=88=BB=E5=86=8D=E8=BF=9B=E5=85=A5=E6=88=98=E6=96=97=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=8D=A1=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/BattlePool.lua | 11 ++++++----- .../~Lua/Modules/Battle/View/BattleView.lua | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/BattlePool.lua b/Assets/ManagedResources/~Lua/Modules/Battle/BattlePool.lua index c76e4ce764..3debad655a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/BattlePool.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/BattlePool.lua @@ -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 \ No newline at end of file diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua index 0b011f8152..f63cd199b3 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattleView.lua @@ -1032,7 +1032,7 @@ function this:OnDestroy() SubUIManager.Close(this.ElementalResonanceView) SubUIManager.Close(this.ElementalResonanceView2) - BattlePool.Destroy() + -- BattlePool.Destroy() -- 回收所有延迟资源 BattleManager.RecycleAllDelayRes() end