Skip to content

Commit b1edaa3

Browse files
committed
Update LobbyManager
1 parent 45eab2f commit b1edaa3

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

19/Done/Pong/Assets/Scripts/LobbyManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ private bool CheckIsReadyToStart()
157157
}
158158

159159
// 모든 플레이어가 준비 상태여야 게임을 시작할 수 있음
160-
foreach (var clientReadyStatePair in _clientReadyStates)
160+
foreach (var isReady in _clientReadyStates.Values)
161161
{
162-
var isReady = clientReadyStatePair.Value;
163162
if (!isReady)
164163
{
165164
return false;

20/Pong/Assets/Scripts/LobbyManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ private bool CheckIsReadyToStart()
157157
}
158158

159159
// 모든 플레이어가 준비 상태여야 게임을 시작할 수 있음
160-
foreach (var clientReadyStatePair in _clientReadyStates)
160+
foreach (var isReady in _clientReadyStates.Values)
161161
{
162-
var isReady = clientReadyStatePair.Value;
163162
if (!isReady)
164163
{
165164
return false;

0 commit comments

Comments
 (0)