コード例 #1
0
 void ILobbyClientSessionHandler.OnWhisperMessageReceived(
     string fromPlayer,
     string toPlayer,
     string message)
 {
     if (this.ChatHandler != null)
     {
         this.ChatHandler.ReceiveChatMessage(ChatChannelType.NaN, fromPlayer, message);
     }
     ChatBox.AddWhisperMessage(fromPlayer, message);
 }
コード例 #2
0
 void ILobbyClientSessionHandler.OnChannelMessageReceived(
     ChatChannelType channel,
     string playerName,
     string message)
 {
     if (this.ChatHandler != null)
     {
         this.ChatHandler.ReceiveChatMessage(channel, playerName, message);
     }
     ChatBox.AddWhisperMessage(playerName, message);
 }