MonoBehaviour.OnDisconnectedFromServer Manual     Reference     Scripting  
Scripting > Runtime Classes > MonoBehaviour
MonoBehaviour.OnDisconnectedFromServer

function OnDisconnectedFromServer (mode : NetworkDisconnection) : void

Description

Called on the client when the connection was lost or you disconnected from the server.

function OnDisconnectedFromServer (info: NetworkDisconnection)
{
Debug.Log("Disconnected from server: " + info);
}