From 2ebc57468187ba21a28fbdb604591939b45bd9a8 Mon Sep 17 00:00:00 2001 From: fiore Date: Fri, 28 Mar 2025 11:14:52 +0900 Subject: [PATCH] =?UTF-8?q?DO-80=20[feat]=20=EB=AC=B4=EC=8A=B9=EB=B6=80=20?= =?UTF-8?q?=EC=A0=9C=EC=95=88=20=EC=A3=BC=EA=B3=A0=20=EB=B0=9B=EB=8A=94=20?= =?UTF-8?q?=EC=A4=91=20=ED=83=80=EC=9D=B4=EB=A8=B8=20=EC=9D=BC=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=95=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Game/GameLogic.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Assets/Script/Game/GameLogic.cs b/Assets/Script/Game/GameLogic.cs index 07b35ff..9882b9d 100644 --- a/Assets/Script/Game/GameLogic.cs +++ b/Assets/Script/Game/GameLogic.cs @@ -138,6 +138,7 @@ public partial class GameLogic : IDisposable break; case Constants.MultiplayManagerState.ReceiveDrawRequest: Debug.Log("상대방의 무승부 요청 들어옴"); + TimerPause(); ExecuteOnMainThread(() => { GameManager.Instance.panelManager.OpenDrawConfirmPanel("무승부 요청을 승낙하시겠습니까?", () => @@ -153,6 +154,7 @@ public partial class GameLogic : IDisposable break; case Constants.MultiplayManagerState.DrawRequestSent: Debug.Log("무승부 요청 전송 완료"); + TimerPause(); break; case Constants.MultiplayManagerState.DrawAccepted: Debug.Log("무승부 요청이 승낙이 들어옴"); @@ -167,6 +169,7 @@ public partial class GameLogic : IDisposable break; case Constants.MultiplayManagerState.DrawRejected: Debug.Log("무승부 요청이 거부가 들어옴"); + TimerUnpause(); ExecuteOnMainThread(() => { GameManager.Instance.panelManager.OpenConfirmPanel("무승부 요청을 거부하였습니다.", () => { }); @@ -174,7 +177,7 @@ public partial class GameLogic : IDisposable break; case Constants.MultiplayManagerState.DrawRejectionConfirmed: Debug.Log("무승부 요청 거부 완료"); - + TimerUnpause(); break; case Constants.MultiplayManagerState.ReceiveTimeout: Debug.Log("상대방이 타임 아웃 됨"); @@ -529,6 +532,12 @@ public partial class GameLogic : IDisposable return AI_NAMIES[index]; } + // 타이머 일시정지 + private void TimerPause() => FioTimer.PauseTimer(); + + // 타이머 일시정지 해제 + private void TimerUnpause() => FioTimer.StartTimer(); + #endregion public void Dispose()