//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); } }
private void JoinAndSubscribeRoom(string roomId) { serverConnection.JoinRoom(roomId); serverConnection.SubscribeRoom(roomId); }
public void SubscribeRoom() { Debug.Log("[WarpNetworkManager]Subscribe to room [SubscribeRoom]"); m_warpClient.SubscribeRoom(m_strRoomID); }