From ca01b8ae6416287fed454bc846b70101d87ec27d Mon Sep 17 00:00:00 2001 From: Jay <96156114+jaydev00a@users.noreply.github.com> Date: Thu, 27 Mar 2025 22:13:44 +0900 Subject: [PATCH] =?UTF-8?q?DO-73=20[Feat]=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Game/GameLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Script/Game/GameLogic.cs b/Assets/Script/Game/GameLogic.cs index af86be5..84dd96e 100644 --- a/Assets/Script/Game/GameLogic.cs +++ b/Assets/Script/Game/GameLogic.cs @@ -22,7 +22,6 @@ public abstract class BasePlayerState gameLogic.fioTimer.PauseTimer(); gameLogic.SetNewBoardValue(playerType, row, col); gameLogic.CountStoneCounter(); - if (_isMultiplay) { _multiplayManager.SendPlayerMove(_roomId, new Vector2Int(row, col)); @@ -357,6 +356,7 @@ public class GameLogic : IDisposable Debug.Log("Join Room 응답값이 null 입니다"); return; } + _roomId = joinRoomData.roomId; // 선공, 후공 처리 isFirstPlayer = joinRoomData.isBlack; @@ -366,7 +366,7 @@ public class GameLogic : IDisposable if (isFirstPlayer) { Debug.Log("해당 플레이어가 선공 입니다"); - firstPlayerState = new PlayerState(true, _multiplayManager, joinRoomData.roomId); + firstPlayerState = new PlayerState(true, _multiplayManager, _roomId); secondPlayerState = new MultiPlayerState(false, _multiplayManager); UnityMainThreadDispatcher.Instance().Enqueue(() => { @@ -381,7 +381,7 @@ public class GameLogic : IDisposable { Debug.Log("해당 플레이어가 후공 입니다"); firstPlayerState = new MultiPlayerState(true, _multiplayManager); - secondPlayerState = new PlayerState(false, _multiplayManager, joinRoomData.roomId); + secondPlayerState = new PlayerState(false, _multiplayManager, _roomId); UnityMainThreadDispatcher.Instance().Enqueue(() => {