Closed Outgoing closed 8 years ago
You can add saving and loading files from disk.
private void LoadTile(Vector2 tileTms, Tile tile) { var url = string.Format(_mapzenUrl, _mapzenLayers, Zoom, tile.GetTileTms.x, tile.GetTileTms.y, _mapzenFormat, _key); var pathFile = PathSaveJsonFile + tile.GetTileTms.x + "-" + tile.GetTileTms.y; if (File.Exists(pathFile)) tile.ConstructTile(pathFile, true); else { ObservableWWW.Get(url).Subscribe( tile.ConstructTile, //success exp => Debug.Log("Error fetching -> " + url)); } }
I also did this on the lastest update, please check it out as well, thanks!
You can add saving and loading files from disk.