diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/SkillInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/SkillInfoPopup.lua index 1be6662e54..c65f2cf207 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/SkillInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/SkillInfoPopup.lua @@ -19,6 +19,9 @@ function this:InitComponent() this.desList[i] = {} this.desList[i].go = Util.GetGameObject(this.desGrid, "des" .. i) this.desList[i].des = Util.GetGameObject(this.desList[i].go, "Text"):GetComponent("Text") + if i == 2 then + this.desList[i].go:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Train)) + end end this.hintTxt = Util.GetGameObject(self.transform, "Content/desGrid/des1/Text1"):GetComponent("Text") this.hintTxt2 = Util.GetGameObject(self.transform, "Content/desGrid/des2/Text2"):GetComponent("Text") @@ -135,7 +138,7 @@ function this:OnOpen(...) this.hintTxt2.gameObject:SetActive(false) this.line:SetActive(false) end - + this.desList[2].go.gameObject:SetActive(CheckFunctionOpen(FUNCTION_OPEN_TYPE.Train)) if curSkillData.isOpen then --LogError("skillList[i].needStar=="..skillList[i].needStar) this.hintTxt.gameObject:SetActive(false)