UnityEngine.Networking.NetworkMigrationManager.OnServerReconnectPlayer C# (CSharp) Method

OnServerReconnectPlayer() protected method

A virtual function that is called on the new host when a client from the old host reconnects to the new host.

protected OnServerReconnectPlayer ( NetworkConnection newConnection, GameObject oldPlayer, int oldConnectionId, short playerControllerId ) : void
newConnection NetworkConnection The connection of the new client.
oldPlayer UnityEngine.GameObject The player object associated with this client.
oldConnectionId int The connectionId of this client on the old host.
playerControllerId short The playerControllerId of the player that is re-joining.
return void
        protected virtual void OnServerReconnectPlayer(NetworkConnection newConnection, GameObject oldPlayer, int oldConnectionId, short playerControllerId)
        {
            this.ReconnectPlayerForConnection(newConnection, oldPlayer, oldConnectionId, playerControllerId);
        }

Same methods

NetworkMigrationManager::OnServerReconnectPlayer ( NetworkConnection newConnection, GameObject oldPlayer, int oldConnectionId, short playerControllerId, NetworkReader extraMessageReader ) : void