骑行界面&赛事界面调整&设备断开功能

This commit is contained in:
lishuo committed 2021-09-07 16:11:15 +08:00
1 parent 467a6f3810
commit 99081519bb
43 files changed
+3658 -697

No files matched your search

@@ -174,9 +174,9 @@ namespace Assets.Scenes.Ride.Scripts
_canEnter = competition.CanEnter;
#region 赛事基本信息
//赛事名称
CompetitionTitle.text = GetMaxString(competition.Title,40);
CompetitionTitle.text = GetMaxString(competition.Title, 35);
//线路名称
mapName.text = GetMaxString(route.Name, 68);
mapName.text = GetMaxString(route.Name, 45);
//距离
distance.text = route.Distance.ToString("f1") + "KM";
//海拔
@@ -193,7 +193,7 @@ namespace Assets.Scenes.Ride.Scripts
Contestant.text = competition.UserList.Count.ToString() + "Riders";
ShowPlayers(competition.UserList);
//路书描述
mapDescText.text = competition.Dec;
mapDescText.text = GetMaxString(competition.Dec, 400);
//线路编号
MapId.text = route.Id.ToString();
@@ -24,7 +24,11 @@ namespace Assets.Scenes.Ride.Scripts
protected override void Awake()
{
//base.Awake();
#if UNITY_IOS || UNITY_ANDROID
pageSize = 7;
#else
pageSize = 4;
#endif
scroll = transform.Find("List").gameObject;
if (scroll != null)
{
@@ -48,8 +48,12 @@ namespace Assets.Scenes.Ride.Scripts
//显示关门时间
if (s.Item3 && !isAutoSave)
{
#if UNITY_IOS || UNITY_ANDROID
//显示倒计时面板信息
ShowCountDown(s.Item1, "Time Limit");
#else
ShowCountDown(s.Item1, "Get The First Place. Time Limit");
#endif
}
else if (s.Item1 >= 0)
{