Set first player Transform instead of moving it manually through Inspector

This could help you in the next lectures. Add this in MyNetworkManager.OnServerAddPlayer after you get a player:

if (numPlayers == 1) {
    player.transform.position = Vector3.left * 4;
}

This will automatically move first player to the left instead of moving it manually through the Inspector. Besides Inspector is available only in the Editor, not the Build.
Change 4 to move the player farther from / closer to the center of the screen.

1 Like

Thanks for the tip! A little later in the course we setup round robin spawning points to spawn your player’s appropriately.

1 Like

Privacy & Terms