Loading页面渐隐
This commit is contained in:
1 parent
10c82703f4
commit
018699c944
8 files changed
+3778
-3473
No files matched your search
@@ -32,7 +32,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
private MapApi mapApi;
|
||||
private Route mapRoute;
|
||||
#endregion
|
||||
|
||||
GameObject loadingcanvas;
|
||||
void Awake()
|
||||
{
|
||||
cyclingModel = CyclingModel.Single;
|
||||
@@ -42,8 +42,8 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
RouteId = App.RouteIdParam > 0? App.RouteIdParam : 376;
|
||||
//var result = GetTestData();
|
||||
MapDataModel result = mapApi.GetData(RouteId);
|
||||
|
||||
|
||||
//player = transform.Find("Player").gameObject;
|
||||
//loadingcanvas = transform.Find("LoadingCanvas").gameObject;
|
||||
var antConnected = CheckAnt();//初始化ant+设备
|
||||
|
||||
//if (!antConnected)
|
||||
@@ -52,7 +52,6 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
//}
|
||||
//StartCoroutine(requset());
|
||||
|
||||
|
||||
var param = mapApi.GetById(RouteId);
|
||||
mapRoute = GetNewInstace(RouteId);//获取一个路书所有的数据
|
||||
MapUDPService.Init();
|
||||
@@ -75,16 +74,6 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
// CyclingModel = new ReviewModel(Route, param);
|
||||
//cyclingModel.OpenCyclingWindow();
|
||||
// break;
|
||||
//case Model.CyclingModel.Competition:
|
||||
// CyclingModel = new CompetitionModel(Route, param);
|
||||
// //cyclingModel.OpenCyclingWindow();
|
||||
// break;
|
||||
//case Model.CyclingModel.GlobalCycling:
|
||||
// CyclingModel = new GlobalCyclingModel(Route, param);
|
||||
|
||||
// break;
|
||||
//default:
|
||||
// break;
|
||||
}
|
||||
|
||||
if (result != null )//&& mapRoute != null)
|
||||
@@ -114,15 +103,10 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
{
|
||||
//加载人物和地图以及UI界面
|
||||
map.gameObject.SetActive(true);
|
||||
//player.SetActive(true);
|
||||
player.SetActive(true);
|
||||
UIObject.SetActive(true);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
#region 数据处理
|
||||
/// <summary>
|
||||
/// 当前骑行数据的记录器
|
||||
|
||||
Reference in new issue
Block a user