internal void OnClientDisconnectInternal(NetworkMessage netMsg)
{
if (LogFilter.logDebug)
{
Debug.Log("NetworkManager:OnClientDisconnectInternal");
}
#if ENABLE_UNET_HOST_MIGRATION
if (m_MigrationManager != null)
{
if (m_MigrationManager.LostHostOnClient(netMsg.conn))
{
// should OnClientDisconnect be called?
return;
}
}
#endif
if (m_OfflineScene != "")
{
//ClientChangeScene(m_OfflineScene, false);
}
// If we have a valid connection here drop the client in the matchmaker before shutting down below
if (matchMaker != null && matchInfo != null && matchInfo.networkId != NetworkID.Invalid && matchInfo.nodeId != NodeID.Invalid)
{
matchMaker.DropConnection(matchInfo.networkId, matchInfo.nodeId, matchInfo.domain, OnDropConnection);
}
OnClientDisconnect(netMsg.conn);
}