readyConn | The connection to become ready for this client. |
playerControllerId | The local player ID number. |
extraMessage | An extra message object that can be passed to the server for this player. |
bool True if player was added.
This adds a player object for this client. This causes an AddPlayer message to be sent to the server, and NetworkManager.OnServerAddPlayer will be called. If an extra message was passed to AddPlayer, then OnServerAddPlayer will be called with a NetworkReader that contains the contents of the message.
The playerControllerId is the local player ID for the player, for example like which controller a player is using. This is not the global overall player number.