From 72127689d07197829699e227954ec23f4f644fb6 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Thu, 28 Apr 2022 10:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E8=A1=8C=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E7=82=B9=E5=87=BB=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Practice/PracticePanel.lua | 3 +-- .../~Lua/Modules/Practice/PracticeSkillInfoPanel.lua | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua index 74a261f0e8..07835101cc 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticePanel.lua @@ -273,8 +273,7 @@ function Practice:SetSkillInfo() Util.GetGameObject(item, "Image"):SetActive(false) Util.GetGameObject(item, "Text"):SetActive(false) end - Util.AddClick(item,function() - LogError("i=="..i.." list[i]=="..list[i]) + Util.AddOnceClick(item,function() UIManager.OpenPanel(UIName.PracticeSkillInfoPanel,i,list[i]) end) index=index+1 diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeSkillInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeSkillInfoPanel.lua index 4755621749..98b0ffbd78 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeSkillInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeSkillInfoPanel.lua @@ -84,10 +84,8 @@ function PracticeSkillInfoPanel:RefreshShow(id,lv) currLv=lv end local list=PracticeManager.GetSkillInfo() - LogError("level====="..lv) skillLv=lv skillId=id - LogError("skillid==="..skillId) local currData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",currLv) nextData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",currLv+1) self.currInfo.text="本级效果:"..currData.Desc