void DrawSaveLayout(ItemCreator creator) { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Save")) creator.Save(); if (GUILayout.Button("Close")) creator.Done(); if (GUILayout.Button("Delete")) creator.Delete(sm); EditorGUILayout.EndHorizontal(); }