Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 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();
 }