public override void OnInspectorGUI() { DrawDefaultInspector(); RoomCreator creator = (RoomCreator)target; if (GUILayout.Button("Generate room")) { creator.GenerateRoom(); } }