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