require("LuaUtil") EquipSuitAttr = {} function EquipSuitAttr.ShowAttrIdx(name, isAct,attr1,attr2,attr3,actCnt) if(isAct == true) then isActGO:SetActive(true); else isActGO:SetActive(false); end print("EquipSuitAttr.ShowAttrIdx") nameText:GetComponent("Text").text = name; nameTextDisact:GetComponent("Text").text = name; suitNum1:GetComponent("Text").text = actCnt; suitNum2:GetComponent("Text").text = actCnt; if(attr1 ~= "") then attr1Text:SetActive(true) attr1Text:GetComponent("Text").text = attr1 attr1TextDisact:SetActive(true) attr1TextDisact:GetComponent("Text").text = attr1 else attr1Text:SetActive(false) attr1TextDisact:SetActive(false) end if(attr2 ~= "") then attr2Text:SetActive(true) attr2Text:GetComponent("Text").text = attr2 attr2TextDisact:SetActive(true) attr2TextDisact:GetComponent("Text").text = attr2 else attr2Text:SetActive(false) attr2TextDisact:SetActive(false) end if(attr3 ~= "") then attr3Text:SetActive(true) attr3Text:GetComponent("Text").text = attr3 attr3TextDisact:SetActive(true) attr3TextDisact:GetComponent("Text").text = attr3 else attr3Text:SetActive(false) attr3TextDisact:SetActive(false) end end