修复十绝阵卡死的问题
parent
9f75396c03
commit
8ee791ab0e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue