I have a brand new project for testing purposes, I walk up to an NPC which starts a dialogue that's loaded from an XML file, and the game crashes/freezes. How can I load XML on Itch? This is how it's currently loaded below, but I also tried making the XML a public variable and setting it in the Inspector.
TextAsset textAsset = (TextAsset) Resources.Load("dialogues");
XmlDocument doc = new XmlDocument();
doc.LoadXml(textAsset.text);