private void OnDestroy()
{
if ((this.m_IsServer && this.m_Running) && (this.m_HostId != -1))
{
NetworkTransport.StopBroadcastDiscovery();
NetworkTransport.RemoveHost(this.m_HostId);
}
if ((this.m_IsClient && this.m_Running) && (this.m_HostId != -1))
{
NetworkTransport.RemoveHost(this.m_HostId);
}
}