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

OnServerReconnectObject() protected method

A virtual function that is called for non-player objects with client authority on the new host when a client from the old host reconnects to the new host.

protected OnServerReconnectObject ( NetworkConnection newConnection, GameObject oldObject, int oldConnectionId ) : void
newConnection NetworkConnection The connection of the new client.
oldObject UnityEngine.GameObject The object with authority that is being reconnected.
oldConnectionId int The connectionId of this client on the old host.
return void
        protected virtual void OnServerReconnectObject(NetworkConnection newConnection, GameObject oldObject, int oldConnectionId)
        {
            this.ReconnectObjectForConnection(newConnection, oldObject, oldConnectionId);
        }