UnityEngine.Networking.NetworkManager.OnServerAddPlayer C# (CSharp) Method

OnServerAddPlayer() public method

Called on the server when a client adds a new player with ClientScene.AddPlayer.

public OnServerAddPlayer ( NetworkConnection conn, short playerControllerId ) : void
conn NetworkConnection Connection from client.
playerControllerId short Id of the new player.
return void
        public virtual void OnServerAddPlayer(NetworkConnection conn, short playerControllerId)
        {
            this.OnServerAddPlayerInternal(conn, playerControllerId);
        }

Same methods

NetworkManager::OnServerAddPlayer ( NetworkConnection conn, short playerControllerId, NetworkReader extraMessageReader ) : void