示例#1
0
    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();
    }
示例#2
0
    void DrawCreateLayout(ItemCreator creator)
    {
        EditorGUILayout.BeginHorizontal();

        if (GUILayout.Button("Create"))
            CreateNewItem(creator);

        if (GUILayout.Button("Cancel"))
            creator.Done();

        EditorGUILayout.EndHorizontal();
    }