public static void ReceiveData(CmdEnum cmd, byte[] data)
 {
     if (cmd == CmdEnum.ResLogin)
     {
         ResponseLogin login = SerializeTool.Deserialize <ResponseLogin>(data);
         ResponseLogin(login);
     }
     else if (cmd == CmdEnum.ResAlive)
     {
         ResponseAlive alive = SerializeTool.Deserialize <ResponseAlive>(data);
         ResponseAlive(alive);
     }
     else if (cmd == CmdEnum.ResRegister)
     {
         ResponseRegister response = SerializeTool.Deserialize <ResponseRegister>(data);
         ResponseRegister(response);
     }
     else if (cmd == CmdEnum.ResCreateRoom)
     {
         ResponseCreateRoom response = SerializeTool.Deserialize <ResponseCreateRoom>(data);
         ResponseCreateRoom(response);
     }
     else if (cmd == CmdEnum.ResGetRooms)
     {
         ResponseGetRooms response = SerializeTool.Deserialize <ResponseGetRooms>(data);
         ResponseGetRooms(response);
     }
     else if (cmd == CmdEnum.ResDeleteRoom)
     {
         ResponseDeleteRoom response = SerializeTool.Deserialize <ResponseDeleteRoom>(data);
         ResponseDeleteRoom(response);
     }
 }
 //返回房间列表
 public static void ResponseGetRooms(ResponseGetRooms response)
 {
     if (response != null)
     {
         //RoomUIController.Instance.CreateRoomList(response.Rooms);
     }
 }