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

Reset() public method

Resets the migration manager, and sets the ClientScene's ReconnectId.

public Reset ( int reconnectId ) : void
reconnectId int The connectionId for the ClientScene to use when reconnecting.
return void
        public void Reset(int reconnectId)
        {
            this.m_OldServerConnectionId = -1;
            this.m_WaitingToBecomeNewHost = false;
            this.m_WaitingReconnectToNewHost = false;
            this.m_DisconnectedFromHost = false;
            this.m_HostWasShutdown = false;
            ClientScene.SetReconnectId(reconnectId, this.m_Peers);
            if (NetworkManager.singleton != null)
            {
                NetworkManager.singleton.SetupMigrationManager(this);
            }
        }