private void AddSearchWindow(EditorWindow editorWindow) { nodeSearchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); nodeSearchWindow.Init(editorWindow, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), nodeSearchWindow); }
private void AddSearchWindow() { searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); searchWindow.Init(dialogueGraph, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), searchWindow); }