void AddTile() { string name = ifATMName.GetComponent <InputField>().text; int gold = Int32.Parse(ifATMGold.GetComponent <InputField>().text); int food = Int32.Parse(ifATMFood.GetComponent <InputField>().text); int minerals = Int32.Parse(ifATMMinerals.GetComponent <InputField>().text); bool ground = tgATMGround.GetComponent <Toggle>().isOn; jsonManager.AddTile(name, food, minerals, gold, ground); if (ground) { Debug.Log("Created ground tile with name " + name + "\nwith Gold = " + gold + ", Food = " + food + ", Minerals = " + minerals); } else { Debug.Log("Created non-ground tile with name " + name + "\nwith Gold = " + gold + ", Food = " + food + ", Minerals = " + minerals); } SetRows(); SetDDOptions(); }