restarting network rpc

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

Comments

  • 2Kin
    Options
    When you call PhotonNetwork.LeaveRoom() and you are in a room (ie PhotonNetwork.room!=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).