I’m finding it difficult to set the message to the client for:
void OnDisconnectedFromServer(NetworkDisconnection info)
…as this seems to return NetworkDisconnection.Disconnected in both the cases of the Host disconnecting (and booting the client) and the client choosing to disconnect.
I guess what I was hoping for was an easy way to say “You’ve successfully disconnected from the host” versus “The Host has disconnected, booting you into the wild blue yonder.”
Network.OnDisconnectedFromServer:
Unity - Scripting API: Network.OnDisconnectedFromServer(NetworkDisconnection)
NetworkDisconnection.Disconnected:
Unity - Scripting API: NetworkDisconnection.