public static void CreateWindow(DialogBoard target, string path) { DialogSystemWindow window = (DialogSystemWindow)CreateInstance(typeof(DialogSystemWindow)); window.target = target; window.path = path; window.Show(); // replace by an Init function ? window.nodeStyle = GUI.skin.button; }
public static void CreateWindow(DialogSystemWindow board, Node node) { NodeEditorWindow window = GetWindow(typeof(NodeEditorWindow)) as NodeEditorWindow; window.board = board; window.target = node; window.editorInfo = new List <TransitionEditorInfo>(); foreach (Transition t in node.nextNodes) { TransitionEditorInfo te = new TransitionEditorInfo(); foreach (Logic l in t.logics) { te.logics.Add(new LogicEditor()); } window.editorInfo.Add(te); } window.Show(); }