//RoomRequestListener
 #region RoomRequestListener
 public void onJoinRoomDone(RoomEvent eventObj)
 {
     Debug.Log("onJoinRoomDone : " + eventObj.getResult());
     if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
     {
         Debug.Log(eventObj.getData().getName());
         Constants.ROOM_ADMIN = eventObj.getData().getRoomOwner();
         theClient.SubscribeRoom(eventObj.getData().getId());
     }
     else
     {
         createNewTurnRoom(false);
     }
 }
示例#2
0
 private void JoinAndSubscribeRoom(string roomId)
 {
     serverConnection.JoinRoom(roomId);
     serverConnection.SubscribeRoom(roomId);
 }
示例#3
0
 public void SubscribeRoom()
 {
     Debug.Log("[WarpNetworkManager]Subscribe to room [SubscribeRoom]");
     m_warpClient.SubscribeRoom(m_strRoomID);
 }