feat: 일시정지 팝업의 버튼 로직 수정

This commit is contained in:
aube.lee
2025-02-27 09:44:29 +09:00
parent 51d8b0c6c0
commit 019770935a

View File

@@ -39,10 +39,6 @@ namespace TON
} }
public void OnClickStageRetryModal() public void OnClickStageRetryModal()
{
retryModal.SetActive(true);
}
public void OnClickStageRetryButton()
{ {
// 가지고 있는 하트가 없다면 입장 불가 // 가지고 있는 하트가 없다면 입장 불가
if (HeartDataManager.Singleton.GetCurrentHearts() < 1) if (HeartDataManager.Singleton.GetCurrentHearts() < 1)
@@ -53,6 +49,10 @@ namespace TON
return; return;
} }
retryModal.SetActive(true);
}
public void OnClickStageRetryButton()
{
Time.timeScale = 1f; Time.timeScale = 1f;
// 입장 시 하트 소모 // 입장 시 하트 소모
HeartDataManager.Singleton.UseHeart(); HeartDataManager.Singleton.UseHeart();