public void CreateRoom() { RoomOptions roomOptions = new RoomOptions(); var num = roomIdNumUtil.genNum(); roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable(); roomOptions.CustomRoomProperties.Add("room_id", num); roomOptions.CustomRoomPropertiesForLobby = new string[] { "room_id" }; PhotonNetwork.CreateRoom(System.Guid.NewGuid().ToString() + ";" + ActorModel.Model.actor_name + ": 的房间", roomOptions); }