예제 #1
0
        public void JoinRoom(string roomName = "The Lobby", string password = "")
        {
            List <Room> allRoom = _sfs.GetRoomListFromGroup("default");

            foreach (Room room in allRoom)
            {
                if (room.Name == roomName)
                {
                    _sfs.Send(new JoinRoomRequest(roomName, password));
                    return;
                }
            }
            this.CreateRoom(this.GetRoomSettings(roomName));
        }