Esempio n. 1
0
    public void ShowChannelText(string channelName)
    {
        /* If no channel name was passed in or a channel by the given name cannot
         * be found, then return.
         */
        if (string.IsNullOrEmpty(channelName))
        {
            return;
        }

        ChatChannel channel;
        bool        channelFound = _chatClient.TryGetChannel(channelName, out channel);

        if (!channelFound)
        {
            Debug.Log($"Could not find channel {channelName}");
            return;
        }

        _chatBox.DeleteMessages();
        _chatBox.AddMessage("", channel.ToStringMessages(), Color.white);
        Debug.Log(channel.ToStringMessages());
    }