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(); }
void DrawCreateLayout(ItemCreator creator) { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Create")) CreateNewItem(creator); if (GUILayout.Button("Cancel")) creator.Done(); EditorGUILayout.EndHorizontal(); }