public SystemData LoadSystemData(string target) { WipeCurrentSystem(); TextAsset systemText = Resources.Load <TextAsset>("SystemData/" + target); SystemData data = JsonUtility.FromJson <SystemData>(systemText.text); SetSystemManager(data); for (var x = 0; x < data.planets.Count; x++) { TextAsset newPlanetText = Resources.Load <TextAsset>("PlanetData/" + data.systemName + "/" + data.planets[x]); Planet newPlanet = JsonUtility.FromJson <Planet>(newPlanetText.text); planetList.Add(newPlanet); planetManager.BuildPlanet(newPlanet); } InitializeOtherShips(); _guiBehaviour.ReceiveMessage("Entered system: " + systemName, false); _guiBehaviour.ReceiveMessage("System owner: " + systemOwner, false); Invoke("CheckArea", 0.75f); return(data); }