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