public IEnumerator LoadPlanet() { _planetdata = new List <Planet>(); WWW planetdata = new WWW("http://81.169.177.181/olp/planet_list.php"); yield return(planetdata); if (string.IsNullOrEmpty(planetdata.error)) { _planetdata = new List <Planet>(); _planetdata = JsonHelper.getJsonArray <Planet>(planetdata.text).ToList <Planet>(); PlanetManager.AddPlanets(_planetdata); } else { Debug.LogError("ERROR FATAL"); } _planetdata.Clear(); PlanetManager.DrawPlanets(); }