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