private void OnGUI()
        {
            if (GUILayout.Button("Create New Category"))
            {
                CreateCategoryWindow.OpenMenu();
            }

            if (GUILayout.Button("Rename Existing Category"))
            {
                RenameCategoryWindow.OpenMenu();
            }
        }
示例#2
0
 public static void OpenMenu()
 {
     window = GetWindow <CreateCategoryWindow>("Create New Category");
 }