Beispiel #1
0
 public void SendMJsonObject(MJsonMessageJoin jsonmsg)
 {
     SendMessageToServer(MjsonObjectToString(jsonmsg));
 }
Beispiel #2
0
 /// <summary>
 /// callback for Hello message which is sent from server when client connects server.
 /// clients must send none(no action) message in this function.
 /// </summary>
 void OnHello()
 {
     var startMessage = new MJsonMessageJoin(PlayerName, RoomName);
     serverHolder.SendMJsonObject(startMessage);
 }