mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.SetAllClientsNotReady: simplify code
This commit is contained in:
parent
a526c39228
commit
7b550fdf4b
@ -820,9 +820,8 @@ internal static void HideForConnection(NetworkIdentity identity, NetworkConnecti
|
||||
// call this to make all the clients not ready, such as when changing levels.
|
||||
public static void SetAllClientsNotReady()
|
||||
{
|
||||
foreach (KeyValuePair<int, NetworkConnection> kvp in connections)
|
||||
foreach (NetworkConnection conn in connections.Values)
|
||||
{
|
||||
NetworkConnection conn = kvp.Value;
|
||||
SetClientNotReady(conn);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user