Coroutines patch
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user