解决相机抖动和人物移动动画不流畅的问题
This commit is contained in:
1 parent
0ab0e99597
commit
42fa59d103
24 files changed
+154640
-457
No files matched your search
@@ -26,6 +26,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
private int _counter;
|
||||
|
||||
GameObject _directionsGO;
|
||||
MainController mainCotroller;
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
@@ -39,6 +40,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
public void Start()
|
||||
{
|
||||
mainCotroller = transform.parent.GetComponent<MainController>();
|
||||
foreach (var modifier in MeshModifiers)
|
||||
{
|
||||
modifier.Initialize();
|
||||
@@ -66,14 +68,14 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
var meshData = new MeshData();
|
||||
var dat = new List<Vector3>();
|
||||
|
||||
var mapData = GameManger.MapData;
|
||||
var mapData = mainCotroller.GetMapData();
|
||||
if (mapData != null)
|
||||
{
|
||||
foreach (var mapDataItem in mapData.List)
|
||||
{
|
||||
var point = mapDataItem.Point;
|
||||
Vector3 item = _map.GeoToWorldPosition(new Vector2d(point[0], point[1]));
|
||||
item.y += 0.4f;
|
||||
item.y += 0.2f;
|
||||
dat.Add(item);
|
||||
}
|
||||
var feat = new VectorFeatureUnity();
|
||||
|
||||
Reference in new issue
Block a user