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

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

@@ -96,7 +96,17 @@ namespace Assets.Scenes.Ride.Scripts
{
if (infoPanel == null)
{
if(mainController.cyclingModel == CyclingModel.Competition)
#if UNITY_IOS || UNITY_ANDROID
if (mainController.cyclingModel == CyclingModel.Competition)
{
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/Mobile/OnlineRaceInfoPanel"), uiObject);
}
else
{
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/Mobile/OnlineInfoPanel"), uiObject);
}
#else
if (mainController.cyclingModel == CyclingModel.Competition)
{
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineRaceInfoPanel"), uiObject);
}
@@ -104,6 +114,7 @@ namespace Assets.Scenes.Ride.Scripts
{
infoPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineInfoPanel"), uiObject);
}
#endif
}
var headPos = infoPanel.transform.Find("Head").position;
var infoPos = playerScreenPos + new Vector3(150f, 60f, 0f);