Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string[] mode;
- RoomOptions roomopt;
- public void makegame(){
- roomopt.CustomRoomPropertiesForLobby = mode;
- roomopt.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable{{"map","pirateisland"} };
- PhotonNetwork.CreateRoom (namefield.GetComponent<Text> ().text, roomopt, TypedLobby.Default);
- }
- // WHILE LOOPING ,IN ANOTHER SCRIPT i get the room property of the room as null
- void showgames(){
- foreach (RoomInfo room in PhotonNetwork.GetRoomList()) {
- Debug.Log(room.customProperties["map"]); // this ALWAYS returns null
- if ( room.customProperties["map"] == "pirateisland"){
- Debug.log("works");
- }
- }
Add Comment
Please, Sign In to add comment