public void CreateWorld() { if (!GameManager.worlds.ContainsKey(worldNameField.text.ToLower())) { GameManager.World world = GameManager.CreateWorld(worldNameField.text.ToLower(), int.Parse(seedField.text)); GameManager.currentWorld = world; MultiplayerManager.networkMode = MultiplayerManager.NetworkMode.Solo; SceneSwitcher.Active.Play(GameManager.World.Realm.Planet); } else { infomation.color = Color.red; infomation.text = "That world already exists"; } }
public World(string address, GameManager.World world) { this.address = address; this.world = world; }