[HOTFIX] 싱글일때도 확인
This commit is contained in:
parent
26687852c9
commit
fef887f5d4
@ -69,18 +69,19 @@ public class GameUIController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void OnClickDrawRequestButton()
|
public void OnClickDrawRequestButton()
|
||||||
|
{
|
||||||
|
if (GameManager.Instance.GetRequestDrawChance())
|
||||||
|
{
|
||||||
|
GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () =>
|
||||||
{
|
{
|
||||||
if (GameManager.Instance.CheckIsSinglePlay())
|
if (GameManager.Instance.CheckIsSinglePlay())
|
||||||
{
|
{
|
||||||
GameManager.Instance.DrawSinglePlay();
|
GameManager.Instance.DrawSinglePlay();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if (GameManager.Instance.GetRequestDrawChance())
|
|
||||||
{
|
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () =>
|
|
||||||
{
|
{
|
||||||
_multiplayManager.RequestDraw();
|
_multiplayManager.RequestDraw();
|
||||||
|
}
|
||||||
}, true);
|
}, true);
|
||||||
GameManager.Instance.SetRequestDrawChanceFalse();
|
GameManager.Instance.SetRequestDrawChanceFalse();
|
||||||
}
|
}
|
||||||
@ -89,17 +90,10 @@ public class GameUIController : MonoBehaviour
|
|||||||
GameManager.Instance.panelManager.OpenConfirmPanel("무승부 요청이 제한돼있습니다.",()=>{});
|
GameManager.Instance.panelManager.OpenConfirmPanel("무승부 요청이 제한돼있습니다.",()=>{});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void OnClickRevengeRequestButton()
|
public void OnClickRevengeRequestButton()
|
||||||
{
|
{
|
||||||
if (!GameManager.Instance.GetGameLogic().OpponentExist)
|
if (!GameManager.Instance.GetGameLogic().OpponentExist || GameManager.Instance.CheckIsSinglePlay())
|
||||||
{
|
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("상대방이 방을 나갔습니다.",() => { });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GameManager.Instance.CheckIsSinglePlay())
|
|
||||||
{
|
{
|
||||||
GameManager.Instance.panelManager.OpenConfirmPanel("상대방이 방을 나갔습니다.",() => { });
|
GameManager.Instance.panelManager.OpenConfirmPanel("상대방이 방을 나갔습니다.",() => { });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user