From 00287b66a6cf71af4982d45f5a2d96a3bc7fb356 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Tue, 22 Sep 2020 11:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=20=20=20=20=E5=A4=A7=E9=97=B9=E5=A4=A9=E5=AE=AB=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E4=BE=8B=E4=BC=9A=E9=87=8D=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Expedition/ExpeditionMainPanel.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expedition/ExpeditionMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Expedition/ExpeditionMainPanel.lua index 91fd5e9071..3bc64e37cf 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expedition/ExpeditionMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expedition/ExpeditionMainPanel.lua @@ -260,10 +260,9 @@ function ExpeditionMainPanel:SingleLayNodeShow(go,layNodeListData) local nodeGo = go --卸载加载的立绘 if liveNodeList[go] then - for i = 1, #liveNodeList[go] do - local item = liveNodeList[go][i] - if item then - poolManager:UnLoadLive(item.name, item.go, PoolManager.AssetType.GameObject) + for key, value in pairs(liveNodeList[go]) do + if value then + poolManager:UnLoadLive(value.name, value.go, PoolManager.AssetType.GameObject) end end end