Up to this point, the player has existed in one of our two arena scenes perpetually. However, since we'll be hosting each match of the game in its own instance of one of these levels, we need a staging area where players can specify what match they join and at what level. We'll call this the lobby.
Our lobby scene will handle player interaction for hosting or joining a game; it will take specifications from the player and then load the proper scene before connecting them to the other players in the match.
We'll want to move our menu to the lobby scene, so before doing anything else, create a prefab of the MenuCanvas object in one of your scenes and delete the instance from both. Create a new scene and name it Lobby.unity
. Remove the default Main Camera object from the hierarchy and drag an instance of OVRCameraRig
from the Prefabs
folder within the OVR
directory into the scene.