Sorting PhotonNetwork.GetRoomList() Output
Options
Hello,
can someone send me an example on how to sort the PhotonNetwork.GetRoomList() output ?
I have:
Then before printing the rooms using a foreach, I'd like to sort them by number of players etc. Is this possible ?
Thanks
can someone send me an example on how to sort the PhotonNetwork.GetRoomList() output ?
I have:
RoomInfo[] Rooms;
Rooms = PhotonNetwork.GetRoomList();
Then before printing the rooms using a foreach, I'd like to sort them by number of players etc. Is this possible ?
Thanks
0
Comments
-
Actually, this is a general C# programming question. You could check stackoverflow for this type of question.
I found: http://stackoverflow.com/questions/6175 ... in-c-sharp0 -
Well Rooms is a RoomInfo[] var, how can I treat this kind of type ?0