private void GetAndStartDisplayingText(string conversationID) { TextObject = MyConversations.GetTextNode(conversationID); Parse(); // Parse textObject for each screen size and put into textScreens. TextIndex = 0; DisplayNextTextScreen(); }
// Update is called once per frame void Update() { TimePassed += Time.deltaTime; if (TimePassed > 1.5f) { TimePassed -= 100.0f; TextNode myNode = MyConversations.GetTextNode("root1"); Debug.Log(myNode.character + ": " + myNode.script); } }