Ejemplo n.º 1
0
 public void name()
 {
     if (int.TryParse(widthText.text, out width) && int.TryParse(heightText.text, out height))
     {
         spawn.GenerateMap(width, height);
     }
     else
     {
         Debug.Log("Not a number");
     }
 }