void Awake() { instance = this; tiles = new Tile[gridSizeX, gridSizeY]; InitGrid(); //GenerateHouse(); }
public override void OnInspectorGUI() { HouseGen houseGen = (HouseGen)target; DrawDefaultInspector(); if (GUILayout.Button("Destroy")) { houseGen.DestroyHouse(); } if (GUILayout.Button("Build")) { ClearConsole(); houseGen.Build(); } }