附近的人

This commit is contained in:
lishuo committed 2021-04-12 17:35:56 +08:00
1 parent 725b510748
commit 2fcd9b23fa
94 files changed
+7063 -2007

No files matched your search

@@ -38,18 +38,13 @@ public class CyclingController : DeviceServiceMonoBase
cyclingModel = CyclingModel.Single;
//获取路书信息
mapApi = new MapApi();
RouteId = App.RouteIdParam;
RouteId = App.RouteIdParam > 0? App.RouteIdParam : 376;
//var result = GetTestData();
MapDataModel result;
if (RouteId > 0)
{
result = mapApi.GetData(RouteId);
}
else
{
result = GetTestData();
}
MapDataModel result = mapApi.GetData(RouteId);
#if !UNITY_EDITOR
var antConnected = CheckAnt();//初始化ant+设备
#endif
//if (!antConnected)
//{
// throw new Exception("请先连接设备");
@@ -59,7 +54,7 @@ public class CyclingController : DeviceServiceMonoBase
var param = mapApi.GetById(RouteId);
mapRoute = GetNewInstace(RouteId);//获取一个路书所有的数据
MapUDPService.Init();
switch (cyclingModel)
{
case CyclingModel.Single:
@@ -113,7 +108,6 @@ public class CyclingController : DeviceServiceMonoBase
private void Update()
{
}