Coroutines patch

This commit is contained in:
2025-11-30 08:46:19 +01:00
parent 655d378dbb
commit b1fc3ac24a
2 changed files with 2 additions and 5 deletions

View File

@@ -14,11 +14,6 @@ public class GPSManager : MonoBehaviour
private double? LastTime;
void Start()
{
}
void Update()
{
StartCoroutine(UpdateGPS());
}
@@ -68,5 +63,6 @@ public class GPSManager : MonoBehaviour
Debug.Log("GPS location: " + LastCoords[0] + ", " + LastCoords[1] + " (time: " + LastTime + ")");
}
yield return StartCoroutine(UpdateGPS());
}
}

View File

@@ -94,6 +94,7 @@ public class MapRenderer : MonoBehaviour
Debug.Log("Map generation complete: " + parsedWays.Count + " ways, " + nodes.Count + " nodes.");
}
yield return StartCoroutine(RenderMap());
}
void ClearChildren()