public static LineLibrary initLines() { string data = ""; System.IO.StreamReader inFile = new System.IO.StreamReader(@"Assets\GameData\DialogueData\DialogueLines.json"); while (!inFile.EndOfStream) { data += inFile.ReadLine(); } LineLibrary ll = LineLibrary.CreateFromJSON(data); return(ll); }
public Conversation() { ll = FileManager.initLines(); //this will be creating a new instance for each character if conversation class isn't a universal class el = FileManager.initExpressions(); }