private void Chatted(NetworkWriter writer) { if (IsServer) { NetworkController.Instance.SendToAll(NetworkController.ReliableChannel, ChatMessage, writer.ToArray()); return; } string senderName = writer.ReadString(); string message = writer.ReadString(); m_ChatLog.text += senderName + ": " + message; }