From 26687852c960c00d4be9b4dc5495777cbf334eea Mon Sep 17 00:00:00 2001 From: Jay <96156114+jaydev00a@users.noreply.github.com> Date: Mon, 31 Mar 2025 11:30:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[HOTFIX]=20x=EB=B2=84=ED=8A=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/GameUIController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/GameUIController.cs b/Assets/GameUIController.cs index 6d5d915..c77f16c 100644 --- a/Assets/GameUIController.cs +++ b/Assets/GameUIController.cs @@ -81,7 +81,7 @@ public class GameUIController : MonoBehaviour GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () => { _multiplayManager.RequestDraw(); - }); + }, true); GameManager.Instance.SetRequestDrawChanceFalse(); } else @@ -109,7 +109,7 @@ public class GameUIController : MonoBehaviour { GameManager.Instance.panelManager.OpenLoadingPanel(true, true, false, false); _multiplayManager.RequestRevengeRequest(); - }); + }, true); } } From fef887f5d469a8dfb7e68723db1cba6e5f5ed8cc Mon Sep 17 00:00:00 2001 From: Jay <96156114+jaydev00a@users.noreply.github.com> Date: Mon, 31 Mar 2025 11:37:45 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[HOTFIX]=20=EC=8B=B1=EA=B8=80=EC=9D=BC?= =?UTF-8?q?=EB=95=8C=EB=8F=84=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/GameUIController.cs | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/Assets/GameUIController.cs b/Assets/GameUIController.cs index c77f16c..354e8de 100644 --- a/Assets/GameUIController.cs +++ b/Assets/GameUIController.cs @@ -70,36 +70,30 @@ public class GameUIController : MonoBehaviour public void OnClickDrawRequestButton() { - if (GameManager.Instance.CheckIsSinglePlay()) + if (GameManager.Instance.GetRequestDrawChance()) { - GameManager.Instance.DrawSinglePlay(); + GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () => + { + if (GameManager.Instance.CheckIsSinglePlay()) + { + GameManager.Instance.DrawSinglePlay(); + } + else + { + _multiplayManager.RequestDraw(); + } + }, true); + GameManager.Instance.SetRequestDrawChanceFalse(); } else { - if (GameManager.Instance.GetRequestDrawChance()) - { - GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () => - { - _multiplayManager.RequestDraw(); - }, true); - GameManager.Instance.SetRequestDrawChanceFalse(); - } - else - { - GameManager.Instance.panelManager.OpenConfirmPanel("무승부 요청이 제한돼있습니다.",()=>{}); - } + GameManager.Instance.panelManager.OpenConfirmPanel("무승부 요청이 제한돼있습니다.",()=>{}); } } public void OnClickRevengeRequestButton() { - if (!GameManager.Instance.GetGameLogic().OpponentExist) - { - GameManager.Instance.panelManager.OpenConfirmPanel("상대방이 방을 나갔습니다.",() => { }); - return; - } - - if (GameManager.Instance.CheckIsSinglePlay()) + if (!GameManager.Instance.GetGameLogic().OpponentExist || GameManager.Instance.CheckIsSinglePlay()) { GameManager.Instance.panelManager.OpenConfirmPanel("상대방이 방을 나갔습니다.",() => { }); }