public override void OnInspectorGUI() { DrawDefaultInspector(); DeckGenerator cg = (DeckGenerator)target; if (GUILayout.Button("Generate")) { cg.generate(); } if (GUILayout.Button("Open Folder")) { cg.openCardFolder(); } }