比赛进行中前后面板微调,修复比赛一直处于开始状态的bug

This commit is contained in:
lishuo committed 2021-07-27 20:35:23 +08:00
1 parent cfcb302a31
commit e29f0a8116
6 files changed
+527 -5

No files matched your search

@@ -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);