zhouhongyu 21b4f3fe24 code 2 years ago
..
Prefabs 21b4f3fe24 code 2 years ago
Scenes 21b4f3fe24 code 2 years ago
Scripts 21b4f3fe24 code 2 years ago
Prefabs.meta 21b4f3fe24 code 2 years ago
README.md 21b4f3fe24 code 2 years ago
README.md.meta 21b4f3fe24 code 2 years ago
Scenes.meta 21b4f3fe24 code 2 years ago
Scripts.meta 21b4f3fe24 code 2 years ago

README.md

Basic Example

This is a bare bones example of a running game with Network Manager and UI prefab players:

  1. Remove all scenes from Build Settings, then add the Example scene alone.

  2. Open the Example scene and build the project.

  3. In the editor, click Play, and Server + Client or Server Only...it will be listening on port 7777.

    • If you clicked Host (Server + Client), the host player will appear as Player 00.
  4. Run one or more instances (up to 16 total players) of the built application.

  5. Click Client on each instance.

  6. Now you will see all players in the editor and the clients, all with data being updated and synchronized.