private void OnDisconnected(NetworkConnection conn)
{
conn.InvokeHandlerNoData(0x21);
for (int i = 0; i < conn.playerControllers.Count; i++)
{
if ((conn.playerControllers[i].gameObject != null) && LogFilter.logWarn)
{
Debug.LogWarning("Player not destroyed when connection disconnected.");
}
}
if (LogFilter.logDebug)
{
Debug.Log("Server lost client:" + conn.connectionId);
}
conn.RemoveObservers();
conn.Dispose();
}