private IEnumerator SpawnManHoleObjects(string geoJSONtext, TileChange tileChange, Tile tile, System.Action <TileChange> callback = null) { tile.gameObject.SetActive(isEnabled); GeoJSON customJsonHandler = new GeoJSON(geoJSONtext); yield return(null); double[] point2D; Vector3 point; int parseCounter = 0; while (customJsonHandler.GotoNextFeature()) { parseCounter++; if ((parseCounter % maxParsesPerFrame) == 0) { yield return(new WaitForEndOfFrame()); } if (customJsonHandler.PropertyValueStringEquals("objectsoort", "Knikpunt")) { point2D = customJsonHandler.getGeometryPoint2DDouble(); double putdekselhoogte = customJsonHandler.getPropertyFloatValue("putdekselhoogte"); point = ConvertCoordinates.CoordConvert.WGS84toUnity(new Vector3WGS(point2D[0], point2D[1], putdekselhoogte + Config.activeConfiguration.zeroGroundLevelY)); sewerManholeSpawner.CreateManhole(point, 1.50f, tile.gameObject); } } StartCoroutine(CombineSewerage(tileChange, tile, callback)); }