解决相机抖动和人物移动动画不流畅的问题
This commit is contained in:
1 parent
0ab0e99597
commit
42fa59d103
24 files changed
+154640
-457
No files matched your search
@@ -3,6 +3,7 @@
|
||||
using System.Collections;
|
||||
using Assets.Scenes.Ride.Scripts;
|
||||
using Assets.Scripts.Apis;
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using Mapbox.Unity.Location;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -30,17 +31,13 @@
|
||||
{
|
||||
_locationProvider.OnLocationUpdated -= LocationProvider_OnLocationUpdated;
|
||||
//_map.Initialize(location.LatitudeLongitude, _map.AbsoluteZoom);
|
||||
|
||||
MapApi mapApi = new MapApi();
|
||||
var result = mapApi.GetData(5492);
|
||||
if (result != null)
|
||||
|
||||
var mainController = transform.parent.GetComponent<MainController>();
|
||||
if (mainController != null)
|
||||
{
|
||||
//全局保存当前路线信息
|
||||
GameManger.MapData = result;
|
||||
//初始化map
|
||||
var point = result.List[0].Point;
|
||||
var point = mainController.GetCenterCoordinate();
|
||||
_map.Initialize(new Utils.Vector2d(point[0], point[1]), _map.AbsoluteZoom);
|
||||
//初始化人物 TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user