private IEnumerator LoadTrackFrom(WWW www) { yield return(www); Debug.Log("loading track from + " + www.url); if (www.error == null) { var track = JsonConvert.DeserializeObject <Track>(www.text); tilesManager.ResetTiles(); LoadTilesFrom(track); } else { Debug.LogError("network error: " + www.error); } }