From 2e962b3cef06b63df2bdea83eb4216586b892ded Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 23 Oct 2020 20:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=8D=A1=E7=95=8C=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Pokemon/PokemonSingleResultPanel.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonSingleResultPanel.lua b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonSingleResultPanel.lua index b8ee6a2510..7b3f3e006d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonSingleResultPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonSingleResultPanel.lua @@ -81,6 +81,9 @@ function PokemonSingleResultPanel:OnOpen(...) type = args[1] drop = args[2] _heroTable = drop.pokemon + for i = 1 ,#_heroTable do + LogRed("_heroTable[i]:".._heroTable[i].tempId) + end end function PokemonSingleResultPanel:OnShow() @@ -161,8 +164,6 @@ end function PokemonSingleResultPanel:OnClose() - _heroTable={} - drop = {} index=0 if heroStaticData then poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO) @@ -173,6 +174,8 @@ function PokemonSingleResultPanel:OnClose() else UIManager.OpenPanel(UIName.PokemonSummonTenResultPanel, drop,type) end + _heroTable={} + drop = {} end function PokemonSingleResultPanel:OnDestroy()