optimization and obsoleted fixes

This commit is contained in:
runette committed 2026-10-08 13:19:32 +01:00
1 parent 7ed1f92334
commit 5493aebd8f
45 files changed
+4 -1743

No files matched your search

@@ -49,7 +49,7 @@ namespace Mapbox.Unity.MeshGeneration.Factories
{
if (_map == null)
{
_map = FindFirstObjectByType<AbstractMap>();
_map = FindAnyObjectByType<AbstractMap>();
}
_directions = MapboxAccess.Instance.Directions;
@@ -27,7 +27,7 @@
{
foreach (var t in _types)
{
_tempId = ve.GameObject.GetInstanceID() + t.Type.FullName;
_tempId = ve.GameObject.GetEntityId() + t.Type.FullName;
if (!_scripts.Contains(_tempId))
{
ve.GameObject.AddComponent(t.Type);
@@ -92,7 +92,7 @@
}
if(_abstractMap == null)
{
_abstractMap = FindFirstObjectByType<AbstractMap>();
_abstractMap = FindAnyObjectByType<AbstractMap>();
}
if(_abstractMap != null)
{
+1 -1
View File
@@ -22,7 +22,7 @@
{
TotalTime = 0;
_currentTest = 1;
_map = FindFirstObjectByType<AbstractMap>();
_map = FindAnyObjectByType<AbstractMap>();
_mapVisualizer = _map.MapVisualizer;
_mapVisualizer.OnMapVisualizerStateChanged += (s) =>