修复十绝阵卡死的问题

dev_chengFeng
ZhangBiao 2020-09-09 17:25:27 +08:00 committed by JieLing
parent 9f75396c03
commit 8ee791ab0e
1 changed files with 10 additions and 3 deletions

View File

@ -294,7 +294,6 @@ function this.SetRankingNum(root,rank,isMy)
sortNumTabs[i]:SetActive(false)
end
if rank < 4 then
LogGreen(rank)
sortNumTabs[rank]:SetActive(true)
else
sortNumTabs[4]:SetActive(true)
@ -304,8 +303,16 @@ function this.SetRankingNum(root,rank,isMy)
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank
end
if isMy then
Util.GetGameObject(root,"SortNum/SortNum ("..rank..")"):SetActive(true)
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank
for i = 1, 4 do
Util.GetGameObject(root,"MyRank/SortNum/SortNum ("..i..")"):SetActive(false)
end
if rank < 4 then
Util.GetGameObject(root,"MyRank/SortNum/SortNum ("..rank..")"):SetActive(true)
else
Util.GetGameObject(root,"MyRank/SortNum/SortNum (4)"):SetActive(true)
Util.GetGameObject(root,"MyRank/SortNum/SortNum (4)/TitleText"):GetComponent("Text").text = rank
end
end
end