public override void OnInspectorGUI() { DungeonCreator thisCreator = (DungeonCreator)target; if (GUILayout.Button("Generate Dungeon")) { thisCreator.GenerateDungeon(); } if (GUILayout.Button("Remove Dungeon")) { thisCreator.ClearDungeon(); } base.OnInspectorGUI(); }