Ejemplo n.º 1
0
 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";
     }
 }
Ejemplo n.º 2
0
 public World(string address, GameManager.World world)
 {
     this.address = address;
     this.world   = world;
 }