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(); }