Multiplayer game architectural question

Options
I'm new to Unity and I have a question that I can't really find a good answer to.

My plan is the following scenes:
1. Menu where I can choose single or multiplayer. For multiplayer I will show lobbys and be able to create/join one.
2. FPS-game level 1
3. More levels...

My problem here is I'm not sure how set this up in a good way since I want to change scenes but keep the network connection. Do you have any good tips, ideas or tutorials I have missed?

Comments

  • Look through the tutorials that comes with PUN. But what you are after is a pretty simple thing to do providing you know basic coding in Unity :)

    Make a basic menu like you would do without photon.
    When the "Multiplayer" button is clicked connect to the master server so you can join rooms / create rooms. You can do this by either changing to a new scene that hosts all your multiplayer data or just use separate GUI windows.

    As far as i'm aware from from the short work I have done with Photon, changing scenes once connected to the Photon Cloud will not disrupt your connection, providing you have the networking setup and connect in the new scene.