restarting network rpc

how can i restart my network after i leave the room....


  • 2Kin
    When you call PhotonNetwork.LeaveRoom() and you are in a room (ie!=null), PUN makes a call to OnLeftRoom and reconnect you automatically in the lobby.
    So you can list the availables rooms with PhotonNetwork.GetRoomList(), and join a room without making anything special (just have to switch on/off the listing of the rooms when you leave/enter a room).