英雄星级显示修改

TCX_dev_realOne_master
PC-202302260912\Administrator 2023-12-12 17:53:04 +08:00
parent 5ecaea7bf4
commit 5160b82651
1 changed files with 2 additions and 2 deletions

View File

@ -888,12 +888,12 @@ function SetCardStars(starGrid, star,starType)
else else
starGrid.gameObject:SetActive(true) starGrid.gameObject:SetActive(true)
end end
if star>11 then if star>=11 then
starType=3 starType=3
end end
if starType == 3 then if starType == 3 then
starScale = 7 starScale = 7
star=star-11 star=star-10
end end
for i = 1, starGrid.transform.childCount do for i = 1, starGrid.transform.childCount do
starGrid.transform:GetChild(i - 1).gameObject:SetActive(false) starGrid.transform:GetChild(i - 1).gameObject:SetActive(false)