I have a C# script and at the top is the following code:
public class GameStartScript : MonoBehaviour {
public int width; //Width of playing field
public int height; //Height of playing field
public GameObject tile;
List<Tile> tiles = new List<Tile>();
// Use this for initialization
void Start () {
...
But for some reason, when I attach this to an empty gameobject, it will only let me specify width and height but not the GameObject? I've used public GameObject name; lots of times before and it works fine but for this, it's just not giving me the option to choose anything which is now generating errors when I run my program.
Any advice?