remove obsoletes
This commit is contained in:
1 parent
ada9e96f13
commit
4b2c383ca5
3 files changed
+5
-10
No files matched your search
@@ -22,7 +22,7 @@
|
||||
{
|
||||
if (Application.isEditor)
|
||||
{
|
||||
AbstractMap abstractMap = UnityEngine.Object.FindObjectOfType<AbstractMap>();
|
||||
AbstractMap abstractMap = UnityEngine.Object.FindFirstObjectByType<AbstractMap>();
|
||||
|
||||
if (abstractMap == null)
|
||||
{
|
||||
@@ -286,4 +286,4 @@
|
||||
return cnt;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,17 +41,15 @@ namespace Mapbox.Unity.MeshGeneration.Factories
|
||||
private List<Vector3> _cachedWaypoints;
|
||||
private Directions _directions;
|
||||
private int _counter;
|
||||
private bool _isDragging = false;
|
||||
private Vector3[] _pointArray;
|
||||
private Vector3 _pointUpDelta = new Vector3(0, 3, 0);
|
||||
GameObject _directionsGO;
|
||||
private bool _recalculateNext;
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
if (_map == null)
|
||||
{
|
||||
_map = FindObjectOfType<AbstractMap>();
|
||||
_map = FindFirstObjectByType<AbstractMap>();
|
||||
}
|
||||
|
||||
_directions = MapboxAccess.Instance.Directions;
|
||||
@@ -73,7 +71,6 @@ namespace Mapbox.Unity.MeshGeneration.Factories
|
||||
ArrangingWaypointsStarted();
|
||||
_lineRenderer.gameObject.SetActive(true);
|
||||
_directionsGO.SetActive(false);
|
||||
_isDragging = true;
|
||||
};
|
||||
|
||||
wp.MouseDraging += () =>
|
||||
@@ -91,7 +88,6 @@ namespace Mapbox.Unity.MeshGeneration.Factories
|
||||
{
|
||||
ArrangingWaypointsFinished();
|
||||
_lineRenderer.gameObject.SetActive(false);
|
||||
_isDragging = false;
|
||||
Query();
|
||||
};
|
||||
}
|
||||
@@ -105,7 +101,6 @@ namespace Mapbox.Unity.MeshGeneration.Factories
|
||||
_cachedWaypoints.Add(item.position);
|
||||
}
|
||||
|
||||
_recalculateNext = false;
|
||||
_loftModifier.Initialize();
|
||||
}
|
||||
|
||||
@@ -236,4 +231,4 @@ namespace Mapbox.Unity.MeshGeneration.Factories
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@
|
||||
}
|
||||
if(_abstractMap == null)
|
||||
{
|
||||
_abstractMap = FindObjectOfType<AbstractMap>();
|
||||
_abstractMap = FindFirstObjectByType<AbstractMap>();
|
||||
}
|
||||
if(_abstractMap != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user