Exemple #1
0
    // ------------------------------------------------------------------------
    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);
    }
Exemple #2
0
    // ------------------------------------------------------------------------
    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();
        }
    }