优化赛事人数多卡的问题&解决蓝牙连接133错误码
This commit is contained in:
1 parent
1c73701e73
commit
65e7d9c4f4
272 files changed
+19674
-44
No files matched your search
@@ -33,9 +33,11 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
if (mainController.cyclingController.Mode == CyclingModel.Competition)
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Match/Mobile/CompetitionArrow"), uiObject);
|
||||
var CompetitionArrow = mainController.GetCompetitionMobileArrow();
|
||||
arrowImage = Instantiate(CompetitionArrow, uiObject);
|
||||
#else
|
||||
arrowImage = Instantiate(Resources.Load<Image>("UI/Prefab/Match/CompetitionArrow"), uiObject);
|
||||
var CompetitionArrow = mainController.GetCompetitionArrow();
|
||||
arrowImage = Instantiate(CompetitionArrow, uiObject);
|
||||
#endif
|
||||
//比赛模式
|
||||
if (!string.IsNullOrEmpty(headUrl))
|
||||
@@ -57,7 +59,6 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
protected override void Compute()
|
||||
{
|
||||
currentlatlong = mainController.Along(totalDistance);//下一个坐标
|
||||
if (mainController.currentPlayer != null)
|
||||
{
|
||||
diff = Math.Round((totalDistance - mainController.currentPlayer.TotalDistance) * 1000, 0);
|
||||
@@ -168,7 +169,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
trailRenderer = gameObject.AddComponent<TrailRenderer>();
|
||||
trailRenderer = FindObjectOfType<TrailRenderer>();
|
||||
//var color7 = Resources.Load<Material>("UI/Material/color7");
|
||||
var Graph2 = Resources.Load<Material>("UI/Material/3dGraph2");
|
||||
var Graph2 = mainController.Get3dGraph2(); //Resources.Load<Material>("UI/Material/3dGraph2");
|
||||
trailRenderer.materials = new Material[] { Graph2 };
|
||||
trailRenderer.time = 30;
|
||||
trailRenderer.startWidth = 1f;
|
||||
@@ -259,7 +260,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
if (headPanel == null)
|
||||
{
|
||||
headPanel = Instantiate(Resources.Load<GameObject>("UI/Prefab/Ride/OnlineHeadPanel"));
|
||||
var onlineHeadPanel = mainController.GetOnlineheadPanel();
|
||||
headPanel = Instantiate(onlineHeadPanel);
|
||||
headPanel.transform.SetParent(graph.transform);
|
||||
headPanel.transform.localScale = new Vector3(0.8f, 0.8f, 0.8f);
|
||||
headPanel.transform.position = itemPosition;
|
||||
|
||||
Reference in new issue
Block a user