[Style] 로딩패널 GameLogic에서 호출하도록 통일

This commit is contained in:
HaeinLEE 2025-03-28 13:34:01 +09:00
parent 7fe6bd07df
commit 8bc50c9be2
2 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,6 @@ public class GameUIController : MonoBehaviour
{ {
GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () => GameManager.Instance.panelManager.OpenConfirmPanel("무승부 신청을 하시겠습니까?", () =>
{ {
GameManager.Instance.panelManager.OpenLoadingPanel(true, true, false, false);
_multiplayManager.RequestDraw(); _multiplayManager.RequestDraw();
}); });
GameManager.Instance.SetRequestDrawChanceFalse(); GameManager.Instance.SetRequestDrawChanceFalse();

View File

@ -153,8 +153,14 @@ public partial class GameLogic : IDisposable
}); });
break; break;
case Constants.MultiplayManagerState.DrawRequestSent: case Constants.MultiplayManagerState.DrawRequestSent:
{
Debug.Log("무승부 요청 전송 완료"); Debug.Log("무승부 요청 전송 완료");
ExecuteOnMainThread(() =>
{
GameManager.Instance.panelManager.OpenLoadingPanel(true, true, false, false);
});
break; break;
}
case Constants.MultiplayManagerState.DrawAccepted: case Constants.MultiplayManagerState.DrawAccepted:
Debug.Log("무승부 요청이 승낙이 들어옴"); Debug.Log("무승부 요청이 승낙이 들어옴");
ExecuteOnMainThread(() => ExecuteOnMainThread(() =>