Пример #1
0
    void BeginConversation()
    {
        _current = 0;
        _playerText.SetConversation(this);
        _npcText.SetConversation(this);

        if (_playerText.gameObject.name == "KnightPlayer" ||
            _playerText.gameObject.name == "MagePlayer")
        {
            GameObject.Find("KnightPlayer").GetComponent <ChatText>().SetConversation(this);
            GameObject.Find("MagePlayer").GetComponent <ChatText>().SetConversation(this);
        }

        InvokeRepeating(nameof(DisplayMessage), 0f, Time);
    }