示例#1
0
        private void Process(ClientPlayerDeath msg)
        {
            RemotePlayer remotePlayer;

            if (remotePlayers.TryGetValue(msg.id, out remotePlayer))
            {
                playerChat.WriteMessage(remotePlayer.username + " has died.");
            }
        }
示例#2
0
 private void SendMessage()
 {
     if (manager != null && string.IsNullOrEmpty(chatMessage) == false)
     {
         Logic.Commands.SendChat(chatMessage);
         manager.WriteMessage(Multiplayer.main.self.username + ": " + chatMessage);
     }
 }