public void JoinOrCreateRoom(RoomOptions options) { m_roomOptionsCache = options; var roomName = (string)options.CustomRoomProperties[ROOM_NAME]; PhotonNetwork.JoinOrCreateRoom(roomName, options, default); OnJoinRoomStartEvent?.Invoke(); }
public void CreateRoom(RoomOptions options) { var roomName = (string)options.CustomRoomProperties[ROOM_NAME]; m_roomOptionsCache = options; PhotonNetwork.CreateRoom(roomName, options, default); OnJoinRoomStartEvent?.Invoke(); //var name= (string)ProjectManager.Instance.Client.Launcher.CurrentRoom.CustomProperties[ROOM_NAME]; }