【灵兽系统】 放生选择数量修改

dev_chengFeng
zhangqiang 2020-11-02 23:09:58 +08:00
parent 34b4b5db51
commit 342a1bd373
1 changed files with 4 additions and 4 deletions

View File

@ -351,14 +351,14 @@ 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
if LengthOfTable(selectHeroData)>=maxSelectNum then
PopupTipPanel.ShowTip(string.format(Language[12396],maxSelectNum))
return
end
choosed:SetActive(true)
selectHeroData[heroData.dynamicId]=heroData
this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum
if isPokemon==false then
--todo 首次点击灵兽,置灰所有碎片
this.ScrollView:SetData(heroDatas, function (index, go)