/// <summary> /// Paints the UI. /// </summary> protected override void PaintUi() { PaintProperty("Library", true); if (GUILayout.Button("Save")) { TargetObject.SaveGame(); } EditorGUI.BeginDisabledGroup(!SavegameManager.SaveExists); if (GUILayout.Button("Load")) { TargetObject.LoadGame(); } EditorGUI.EndDisabledGroup(); }