public void BeginDialogue() { npcBox.SetActive(true); Responses loadedResponses = xmlWriter.LoadFromXML(filename); playerResponses = loadedResponses.playerResponses; npcResponses = loadedResponses.NPCresponses; npcLineNumber = 0; npcText.text = npcResponses[npcLineNumber].line; }