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 = ""; }
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 = ""; }