Mirror/Assets/Mirror/Examples/Room
MrGadget 4c0d979d4d fix(Room Example): Updated Reward Script
- Added Headers
- made `available` private with ReadOnly
2024-01-21 16:18:56 -05:00
..
Materials Revert merge master to master 2022-01-28 22:31:38 -05:00
Prefabs perf(Examples): Enabled NT Compress Rotation 2023-12-24 04:02:32 -05:00
Scenes fix: Reset Scenes for 2019+ 2023-12-05 17:00:31 -05:00
Scripts fix(Room Example): Updated Reward Script 2024-01-21 16:18:56 -05:00
Materials.meta Revert merge master to master 2022-01-28 22:31:38 -05:00
Prefabs.meta Revert merge master to master 2022-01-28 22:31:38 -05:00
README.md Room Example: update readme for new scene names 2023-11-15 09:51:15 +01:00
README.md.meta Revert merge master to master 2022-01-28 22:31:38 -05:00
Scenes.meta Revert merge master to master 2022-01-28 22:31:38 -05:00
Scripts.meta Revert merge master to master 2022-01-28 22:31:38 -05:00

Room Example

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

  • MirrorRoomOffline
  • MirrorRoomGame
  • MirrorRoomOnline

If you opened the Offline scene before doing the above steps, you may have to reassign the scenes to the NetworkRoomManagerExt component of the RoomManager scene object.

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 Host (Server + Client) in the HUD: This will be host and the 5th player. You can also use Server Only if you prefer.

Click 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.