优化赛事人数多卡的问题&解决蓝牙连接133错误码
This commit is contained in:
1 parent
1c73701e73
commit
65e7d9c4f4
272 files changed
+19674
-44
No files matched your search
@@ -71,7 +71,6 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
int index = 0;
|
||||
protected override void CreateList()
|
||||
{
|
||||
index = 0;
|
||||
CompetitionModel s = cyclingController.cyclingController as CompetitionModel;
|
||||
var ss = s?.competitionRankingModel;
|
||||
rankingList = ss?.Sorts;
|
||||
@@ -97,6 +96,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//当前用户在第几页
|
||||
pageIndex = (pageSize > 0 ? currentIndex / pageSize : 1) + (currentIndex % pageSize > 0 ? 1 : 0);
|
||||
}
|
||||
|
||||
var p = pageIndex > 0 ? pageIndex : 1;
|
||||
index = (p - 1) * pageSize;
|
||||
|
||||
Rank.text = $"{pageIndex}/{totalPages}";
|
||||
var pagedList = rankingList.Skip((pageIndex - 1) * pageSize).Take(pageSize).ToList();
|
||||
//删除
|
||||
|
||||
Reference in new issue
Block a user