protected override void Initialize(BaseGraphView graphView) { title = string.Empty; this.graphView = graphView as GameFlowGraphView; AddButton(ReloadAction, ReloadText, ReloadGraphView); AddButton(SaveAction, SaveText, ReloadGraphView); AddButton(NodesAction, NodesText, ShowNodesWindow); }
protected override void InitializeWindow(BaseGraph inputGraph) { if (!ActiveGraph) { return; } titleContent = new GUIContent(ActiveGraph.name); _uniGraphView = new GameFlowGraphView(this); rootView.Add(_uniGraphView); CreateToolbar(_uniGraphView); }