nearby重合问题&线路排序修改&显示赛事编号

This commit is contained in:
lishuo committed 2021-08-17 18:43:41 +08:00
1 parent 11e9acdb14
commit 49da1493d5
9 files changed
+483 -58

No files matched your search

@@ -115,6 +115,7 @@ namespace Assets.Scenes.Ride.Scripts
GameObject MoreHead { get; set; }
Text CompetitionTitle { get; set; }
Text EndTime { get; set; }
Text MapId { get; set; }
//构建赛事界面
protected override void InitGameObject()
{
@@ -135,6 +136,7 @@ namespace Assets.Scenes.Ride.Scripts
ReadMore = panel.transform.Find("ReadMore").gameObject;
GetReady = panel.transform.Find("GetReady").GetComponent<Text>();
GetReadyTitle = panel.transform.Find("GetReadyTitle").GetComponent<Text>();
MapId = panel.transform.Find("MapId").GetComponent<Text>();
Watcher = Resources.Load<GameObject>("UI/Prefab/Match/Watcher");
MoreHead = Resources.Load<GameObject>("UI/Prefab/Match/MoreHead");
Watch.GetComponent<Button>().enabled = false;
@@ -183,6 +185,8 @@ namespace Assets.Scenes.Ride.Scripts
ShowPlayers(competition.UserList);
//路书描述
mapDescText.text = competition.Dec;
//线路编号
MapId.text = route.Id.ToString();
ReadMore.SetActive(!string.IsNullOrEmpty(competition.CompetitionPreviewUrl));
//主办方logo