Esempio n. 1
0
 private void PlayerSendChat(string sendMessage)
 {
     // Selected channels already masks all unavailable channels in it's get method
     chatFilter.Send(sendMessage, SelectedChannels);
     // The filter can be skipped / replaced by calling the following method instead:
     // PostToChatMessage.Send(sendMessage, SelectedChannels);
     InputFieldChat.text = "";
 }
Esempio n. 2
0
    private void PlayerSendChat(string sendMessage)
    {
        if (selectedVoiceLevel == -1)
        {
            sendMessage = "#" + sendMessage;
        }
        if (selectedVoiceLevel == 1)
        {
            sendMessage = sendMessage.ToUpper();
        }

        // Selected channels already masks all unavailable channels in it's get method
        chatFilter.Send(sendMessage, SelectedChannels);
        // The filter can be skipped / replaced by calling the following method instead:
        // PostToChatMessage.Send(sendMessage, SelectedChannels);
        InputFieldChat.text = "";
    }