Пример #1
0
    public static UtilityCanOrCantWindows CreateGUIWindows(string title, string content, Action GUIfUNC)
    {
        UtilityCanOrCantWindows windows = EditorWindow.GetWindow <UtilityCanOrCantWindows>();

        windows.titleContent = new GUIContent(title);
        windows.content      = content;
        windows.onguifunc    = GUIfUNC;
        windows.ShowUtility();

        return(windows);
    }
Пример #2
0
    public static UtilityCanOrCantWindows CreateWindows(string title, string content, Action <List <object> > SureAction, Action <List <object> > CancelAction, params object[] objarray)
    {
        UtilityCanOrCantWindows windows = EditorWindow.GetWindow <UtilityCanOrCantWindows>();

        windows.ShowList     = new List <object>(objarray);
        windows.sure         = SureAction;
        windows.cancel       = CancelAction;
        windows.titleContent = new GUIContent(title);
        windows.content      = content;
        windows.ShowUtility();

        return(windows);
    }