From ce0e5a822906c012c673b7cda3d3412f66ca25ef Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Mon, 2 Nov 2020 15:02:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=81=B5=E5=85=BD=E6=94=BE=E7=94=9F?= =?UTF-8?q?=E3=80=91=E7=81=B5=E5=85=BD=E6=94=BE=E7=94=9F=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E8=B6=85=E8=BF=87=E4=B8=80=E5=B1=8F=EF=BC=8C?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E5=BA=95=E9=83=A8=E7=81=B5=E5=85=BD=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=8A=B6=E6=80=81=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Resolve/View/Resolve_Pokemon.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua b/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua index 488d9da547..8cc7ae9f46 100644 --- a/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua +++ b/Assets/ManagedResources/~Lua/Modules/Resolve/View/Resolve_Pokemon.lua @@ -289,7 +289,7 @@ function this.SingleHeroDataShow(go,_heroData,isGray) local starGrid = Util.GetGameObject(_go.transform, "star") SetHeroStars(starGrid, heroData.star,1,Vector2.New(32.5,32.5),-15) local choosed =Util.GetGameObject(_go.transform, "choosed") - if heroData.ischip then + if heroData.ischip==1 then choosed:SetActive(selectChipId==heroData.dynamicId) else choosed:SetActive(selectHeroData[heroData.dynamicId] ~= nil) @@ -350,7 +350,9 @@ function this.SingleHeroDataShow(go,_heroData,isGray) end return end - + choosed:SetActive(true) + selectHeroData[heroData.dynamicId]=heroData + this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum --如果选中灵兽的数量为最大 if LengthOfTable(selectHeroData)==maxSelectNum then PopupTipPanel.ShowTip(string.format(Language[12396],maxSelectNum)) @@ -365,10 +367,7 @@ function this.SingleHeroDataShow(go,_heroData,isGray) this.chipObj:SetActive(false) isPokemon = true end - choosed:SetActive(true) - selectHeroData[heroData.dynamicId]=heroData - this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum end end)