Merge remote-tracking branch 'origin/dev_lishuo' into dev_cyp
This commit is contained in:
commit
3902865658
@ -90,6 +90,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
bufferSize--;
|
||||
}
|
||||
}
|
||||
var list = FindObjectsOfType<CompetitionRankingItem>();
|
||||
foreach (var o in list)
|
||||
{
|
||||
o.transform.SetAsFirstSibling();
|
||||
}
|
||||
//创建或者新增
|
||||
for (int i = 0; i < pagedList.Count(); i++)
|
||||
{
|
||||
@ -100,10 +105,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
private void CreateOrUpdate(CompetitionRankingSortModel item)
|
||||
{
|
||||
var rankingList = FindObjectsOfType<CompetitionRankingItem>();
|
||||
foreach (var o in rankingList)
|
||||
{
|
||||
o.transform.SetAsFirstSibling();
|
||||
}
|
||||
|
||||
var competitionRankingItem = rankingList.Where(c => c.UserId == item.UserId).FirstOrDefault();
|
||||
//如果当前有这个用户则更新没有则创建并setslibingindex
|
||||
if (competitionRankingItem == null)
|
||||
|
||||
@ -63,7 +63,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
//Utils.DestroyChildren(parent);
|
||||
CreateList();
|
||||
t = 1f;
|
||||
t += 1f;
|
||||
}
|
||||
}
|
||||
protected virtual void CreateList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user