Ejemplo n.º 1
0
 /// <summary>
 /// 开始启动接收房间的服务器
 /// </summary>
 public void StartReviceRoomClient()
 {
     if (getRoomClient == null)
     {
         getRoomClient = new ReciveRoomClient();
     }
 }
Ejemplo n.º 2
0
 public void CloseBattleClient()
 {
     if (battleClient != null)
     {
         battleClient.CloseServer();
         battleClient = null;
     }
 }
Ejemplo n.º 3
0
 public void StartBattleClient()
 {
     StopReviceRoom();
     if (battleClient == null)
     {
         battleClient = new BattleClient();
     }
 }
Ejemplo n.º 4
0
 public void CloseReviceRoom()
 {
     if (getRoomClient != null)
     {
         getRoomClient.CloseServer();
         getRoomClient = null;
     }
 }