From 034ed82f0f072ae41cc944e5ec3fca7dfe159af5 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Mon, 12 Apr 2021 14:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9A=AE=E8=82=A4=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RoleInfo/HandBookRoleSkinPanel.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/HandBookRoleSkinPanel.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/HandBookRoleSkinPanel.lua index 6f06ed7fda..da91b399c5 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/HandBookRoleSkinPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/HandBookRoleSkinPanel.lua @@ -126,11 +126,15 @@ function HandBookRoleSkinPanel:BtnAction(skinId,data) return end curSkinId = skinId - parent:ChangeCurentHeroSkinLive(data) + if skinId == 0 then + parent:ChangeCurentHeroSkinLive() + else + parent:ChangeCurentHeroSkinLive(data) + end + end function HandBookRoleSkinPanel:OnHide() - LogGreen("11111111111111111111111111111111111") this.gameObject:SetActive(false) if parent then parent:ChangeCurentHeroSkinLive()