Network.OnDisconnectedFromServer(NetworkDisconnection)

Switch to Manual

Description

从服务器断开连接期间在客户端上调用,当连接已经断开后也会在服务器上调用。

When called on the client the connection was lost or you disconnected from the server. The NetworkDisconnection enum will indicate if the connection was cleanly disconnected or if the connection was lost. When called on the server the connection has successfully disconnected (after a call to Network.Disconnect).