public static void Open(Dialogue d, DialogueSystemWindow dsw) { DialogueWindow window = (DialogueWindow)EditorWindow.GetWindow( typeof(DialogueWindow)); window.Initialize(d, dsw); window.Show(); }
static void Initialise() { window = (DialogueWindow)EditorWindow.GetWindow(typeof(DialogueWindow)); window.Show(); allResponses = new List <ResponseScript>(); playerResponses = new List <ResponseScript>(); npcResponses = new List <ResponseScript>(); xmlWriter = GameObject.Find("XMLObject").GetComponent <XMLWriter>(); dialogueScript = GameObject.Find("XMLObject").GetComponent <DialogueScript>(); window.AddNewNPCResponse(); }