public static void SendTalk(MessageTalk message) { string jsonMessage = JsonConvert.SerializeObject(message); SendMessage(jsonMessage); }
public static void ReceiveTalk(string message) { MessageTalk msg = JsonConvert.DeserializeObject <MessageTalk>(message); GameFlowControl.ReceiveTalk(msg); }