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)