public VerbalTree( VerbalData data, ShowNodeDelegate showNodeCallback, TestCondDelegate testCondCallback, NodeEnteredDelegate nodeEnteredCallback ) { this.m_Data = data; this.m_ShowNodeCallback = showNodeCallback; this.m_TestCondCallback = testCondCallback; this.m_NodeEnteredCallback = nodeEnteredCallback; }
private void Start() { this.m_VisitCounter = new Dictionary <int, int>(); this.m_Conversation = new VerbalTree( VerbalData.loadFromJSON(this.m_ConversationJson.ToString()), this.m_VerbalUI.show, this.testCond, this.onNodeEntered ); this.m_VerbalUI.m_OnAnswerSelected = this.m_Conversation.onAnswerSelected; this.m_Conversation.startConversation(); }