public static OSMData GetOSMData(string mapName) { CreateDataFrame(mapName); MapDataFrame dataFrame = mapDataFrames[mapName]; if (dataFrame.osmData == null) { dataFrame.osmData = OSMDataImporter.ReadOSMData(GetFilePathByName(mapName, PathDataType.trail) + ".xml"); mapDataFrames[mapName] = dataFrame; } return(mapDataFrames[mapName].osmData); }
public void Setup() { osmData = OSMDataImporter.ReadOSMData("Assets/Resources/testData/testTrailData.xml"); precision = 0.0001F; }