1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-26 16:54:17 +00:00
better-tee/Assets/Packages/Mirror/Examples/Lobby
2019-09-16 00:28:36 +02:00
..
Materials "some" new stuff 2019-09-16 00:28:36 +02:00
Prefabs "some" new stuff 2019-09-16 00:28:36 +02:00
Scenes "some" new stuff 2019-09-16 00:28:36 +02:00
Scripts "some" new stuff 2019-09-16 00:28:36 +02:00
Materials.meta "some" new stuff 2019-09-16 00:28:36 +02:00
Prefabs.meta "some" new stuff 2019-09-16 00:28:36 +02:00
README.md "some" new stuff 2019-09-16 00:28:36 +02:00
README.md.meta "some" new stuff 2019-09-16 00:28:36 +02:00
Scenes.meta "some" new stuff 2019-09-16 00:28:36 +02:00
Scripts.meta "some" new stuff 2019-09-16 00:28:36 +02:00

Lobby Example

In Build Settings, remove all scenes and add all of the scenes from the Examples\Lobby\Scenes folder in the following order:

  • Offline
  • Lobby
  • Online

If you opened the Lobby scene before doing the above steps, you may have to reassign the scenes to the NetworkLobbyManagerExt component of the LobbyManager scene object.

** Do not assign anything to the Online scene field!** If you do, the lobby will be bypassed. Assign *only the Offline and Lobby and Gameplay scene fields in the inspector.

File -> Build and Run

Start up to 4 built instances: These will all be client players.

Open the Offline scene in the Editor and press Play

Click the Join Game and LAN Host in the editor: This will be host and the 5th player. You can also use LAN Server if you prefer.

Click Join Game and LAN Client in the built instances.

Click Ready in each instance, and finally in the Editor (Host).

Click the Start Game button when all players are ready.

You should now be in the Online scene with your players of random color.

WASDQE keys to move & turn your player capsule. Collide with the spheres to score points. Lighter colors score higher.