From 0c9b3b4f964c250811c7601e29feaf4c7f54a18a Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 31 Dec 2021 17:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=9B=9E=E6=94=B6=E7=AB=8B=E7=BB=98?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua | 4 ++-- .../ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua index 46f7e9cad3..47234f2aae 100644 --- a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua @@ -417,7 +417,7 @@ function HandBookHeroInfoPanel:RightBtnOnClick() this.rightLiveObj:GetComponent("RectTransform"):DOAnchorPos(Vector2.New(rightHeroData.Position[1],rightHeroData.Position[2]), 0.3, false):SetDelay(0.2):OnComplete(function () this:UpdateLiveList() if this.curLiveObj then - poolManager:UnLoadLive(this.curLiveObj.name, this.leftLiveObj) + poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj) this.curLiveObj = nil end Util.ClearChild(self.leftObj.transform) @@ -462,7 +462,7 @@ function HandBookHeroInfoPanel:LeftBtnOnClick() this.leftLiveObj:GetComponent("RectTransform"):DOAnchorPos(Vector2.New(leftHeroData.Position[1],leftHeroData.Position[2]), 0.3, false):SetDelay(0.2):OnComplete(function () this:UpdateLiveList() if this.curLiveObj then - poolManager:UnLoadLive(this.curLiveObj.name, this.rightLiveObj) + poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj) this.curLiveObj = nil end Util.ClearChild(self.rightObj.transform) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua index fe3c84e4c2..06f4da7dac 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua @@ -408,7 +408,8 @@ function this:RightBtnOnClick() this.rightLiveObj:GetComponent("RectTransform"):DOAnchorPos(Vector2.New(rightHeroData.position[1],rightHeroData.position[2]), 0.3, false):SetDelay(0.2):OnComplete(function () this:UpdateLiveList() if this.curLiveObj then - poolManager:UnLoadLive(this.curLiveObj.name, this.leftLiveObj) + Log("Recycle:"..tostring(this.leftLiveObj)) + poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj) this.curLiveObj = nil end Util.ClearChild(this.leftObj.transform) @@ -477,7 +478,7 @@ function this:LeftBtnOnClick() this.leftLiveObj:GetComponent("RectTransform"):DOAnchorPos(Vector2.New(leftHeroData.position[1],leftHeroData.position[2]), 0.3, false):SetDelay(0.2):OnComplete(function () this:UpdateLiveList() if this.curLiveObj then - poolManager:UnLoadLive(this.curLiveObj.name, this.rightLiveObj) + poolManager:UnLoadLive(this.curLiveObj.name, this.curLiveObj) this.curLiveObj = nil end Util.ClearChild(this.rightObj.transform)