NetworkManager: OnClientNotReadyMessageInternal uses RegisterHandler version without NetworkConnection parameter to prepare for removal

This commit is contained in:
vis2k 2021-03-13 19:24:45 +08:00
parent 5bf7be143c
commit 8e0ef05c64

View File

@ -1157,11 +1157,11 @@ void OnClientDisconnectInternal()
OnClientDisconnect(NetworkClient.connection);
}
void OnClientNotReadyMessageInternal(NetworkConnection conn, NotReadyMessage msg)
void OnClientNotReadyMessageInternal(NotReadyMessage msg)
{
//Debug.Log("NetworkManager.OnClientNotReadyMessageInternal");
NetworkClient.ready = false;
OnClientNotReady(conn);
OnClientNotReady(NetworkClient.connection);
// NOTE: clientReadyConnection is not set here! don't want OnClientConnect to be invoked again after scene changes.
}