public void JoinSelectedRoom() { if (listView.SelectedItems.Count > 0) { Networking.Room selectedRoom = rooms [listView.SelectedItems [0].Index]; networkManager.JoinRoom(selectedRoom.name, nicknameField.text); } }
bool isSelectedRoomFull() { Networking.Room selectedRoom = rooms [listView.SelectedItems [0].Index]; return(selectedRoom.maxPlayers <= selectedRoom.playerCount); }