public override void OnInspectorGUI() { DrawDefaultInspector(); RoomBuilder myScript = (RoomBuilder)target; if (GUILayout.Button("Build Room")) { myScript.buildRoom(); } if (GUILayout.Button("Save Room")) { myScript.SaveRoom(); } }