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