线上问题: 大闹天宫节点例会重叠

dev_chengFeng
zhangqiang 2020-09-22 11:39:05 +08:00 committed by JieLing
parent c5ffb7cb23
commit 00287b66a6
1 changed files with 3 additions and 4 deletions

View File

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