DO-62 [Style] 필요없는 중복 PlayerState 제거

This commit is contained in:
Jay 2025-03-26 15:04:25 +09:00
parent 4ef5a83cc6
commit 7ec639084e

View File

@ -69,15 +69,6 @@ public class PlayerState : BasePlayerState
_isMultiplay = false; _isMultiplay = false;
} }
public PlayerState(bool isFirstPlayer, MultiplayManager multiplayManager, JoinRoomData data)
: this(isFirstPlayer)
{
_isFirstPlayer = isFirstPlayer;
_multiplayManager = multiplayManager;
_roomId = data.roomId;
_isMultiplay = true;
}
public PlayerState(bool isFirstPlayer, MultiplayManager multiplayManager, string roomId) public PlayerState(bool isFirstPlayer, MultiplayManager multiplayManager, string roomId)
: this(isFirstPlayer) : this(isFirstPlayer)
{ {
@ -355,7 +346,7 @@ public class GameLogic : MonoBehaviour
{ {
Debug.Log("해당 플레이어가 후공 입니다"); Debug.Log("해당 플레이어가 후공 입니다");
firstPlayerState = new MultiPlayerState(true, _multiplayManager); firstPlayerState = new MultiPlayerState(true, _multiplayManager);
secondPlayerState = new PlayerState(false, _multiplayManager, joinRoomData); secondPlayerState = new PlayerState(false, _multiplayManager, joinRoomData.roomId);
} }
// 메인 스레드에서 실행 - UI 업데이트는 메인 스레드에서 실행 필요 // 메인 스레드에서 실행 - UI 업데이트는 메인 스레드에서 실행 필요