diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 8a237fea6..cc2d107ca 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -976,11 +976,10 @@ public static void SetAllClientsNotReady() } } - /// - /// Sets the client of the connection to be not-ready. - /// Clients that are not ready do not receive spawned objects or state synchronization updates. They client can be made ready again by calling SetClientReady(). - /// - /// The connection of the client to make not ready. + /// Marks the client of the connection to be not-ready. + // Clients that are not ready do not receive spawned objects or state + // synchronization updates. They client can be made ready again by + // calling SetClientReady(). public static void SetClientNotReady(NetworkConnection conn) { if (conn.isReady) @@ -993,22 +992,15 @@ public static void SetClientNotReady(NetworkConnection conn) } } - /// - /// default ready handler. - /// - /// - /// + // default ready handler. static void OnClientReadyMessage(NetworkConnection conn, ReadyMessage msg) { // Debug.Log("Default handler for ready message from " + conn); SetClientReady(conn); } - /// - /// Removes the player object from the connection - /// - /// The connection of the client to remove from - /// Indicates whether the server object should be destroyed + /// Removes the player object from the connection + // destroyServerObject: Indicates whether the server object should be destroyed public static void RemovePlayerForConnection(NetworkConnection conn, bool destroyServerObject) { if (conn.identity != null) @@ -1020,10 +1012,7 @@ public static void RemovePlayerForConnection(NetworkConnection conn, bool destro conn.identity = null; } - else - { - // Debug.Log($"Connection {conn} has no identity"); - } + //else Debug.Log($"Connection {conn} has no identity"); } ///