比赛进行中前后面板微调,修复比赛一直处于开始状态的bug
This commit is contained in:
1 parent
cfcb302a31
commit
e29f0a8116
6 files changed
+527
-5
No files matched your search
@@ -143,14 +143,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//平均破度
|
||||
slope.text = Math.Round(route.AverageGrade, 2).ToString() + "%";
|
||||
//比赛开始时间
|
||||
StartTime.text = competition.StartTime.ToLongTimeString();
|
||||
StartTime.text = competition.StartTime.ToLocalTime().ToString();
|
||||
//比赛状态
|
||||
CompetitionStatus.text = competition.StatusVlaue.ToString();
|
||||
//参赛选手
|
||||
Contestant.text = competition.UserList.Count.ToString() + "Players";
|
||||
ShowPlayers(competition.UserList);
|
||||
//路书描述
|
||||
mapDescText.text = route.Dec;
|
||||
mapDescText.text = competition.Dec;
|
||||
//主办方logo
|
||||
Utils.DisplayImage(SponsorLogoImage, competition.SponsorCoverage, true);
|
||||
|
||||
|
||||
@@ -82,7 +82,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//比赛开始
|
||||
if (count <= 0 && canStart)
|
||||
{
|
||||
mainController.SetStart();
|
||||
if (!mainController.isStart && !mainController.isQuit)
|
||||
{
|
||||
mainController.SetStart();
|
||||
}
|
||||
}
|
||||
//赛事结束,自动保存
|
||||
var s = competitionModel.EndCountDown();
|
||||
|
||||
@@ -91,7 +91,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
{
|
||||
if (infoPanel == null)
|
||||
{
|
||||
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineInfoPanel"), uiObject);
|
||||
if(mainController.cyclingModel == CyclingModel.Competition)
|
||||
{
|
||||
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineRaceInfoPanel"), uiObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineInfoPanel"), uiObject);
|
||||
}
|
||||
}
|
||||
var headPos = infoPanel.transform.Find("Head").position;
|
||||
var infoPos = playerScreenPos + new Vector3(150f, 60f, 0f);
|
||||
|
||||
Reference in new issue
Block a user