// ------------------------------------------------------------------------ public void StartConversation(ChatSO chat) { m_activeChat = chat; chat.Reset(); Debug.Log("opening chat: " + chat.ID); m_RunMessageCoroutine = RunMessage(m_activeChat.FirstMessage); StartCoroutine(m_RunMessageCoroutine); }
// ------------------------------------------------------------------------ private void FinishChat() { m_activeChat.SpiritSO.VisitedChat = true; m_activeChat = null; ReachedLeafNode(); if (m_waitingForGameStart) { Navigation.OpenMap(); m_waitingForGameStart = false; } if (m_waitingForGameEnd) { GameController.LastConvoFinished(); } }