feat: 게임오버/게임클리어 시 데이터 저장 로직 추가

This commit is contained in:
aube.lee
2025-02-20 17:36:57 +09:00
parent f7ead46508
commit 98cb4dc16f
2 changed files with 8 additions and 2 deletions

View File

@@ -10,6 +10,10 @@ namespace TON
{ {
if (collision.CompareTag("Player")) if (collision.CompareTag("Player"))
{ {
// 캐릭터가 StageDeadZone에 들어옴과 동시에 게임오버 정보를 저장하도록 함
StageManager.Singleton.StageGameOver();
// 캐릭터 Dead 로직 실행
CharacterBase character = collision.gameObject.GetComponentInChildren<CharacterBase>(); CharacterBase character = collision.gameObject.GetComponentInChildren<CharacterBase>();
character.Dead(); character.Dead();
@@ -21,7 +25,6 @@ namespace TON
private void ShowGameOverUI() private void ShowGameOverUI()
{ {
UIManager.Show<GameoverUI>(UIList.GameOverUI); UIManager.Show<GameoverUI>(UIList.GameOverUI);
StageManager.Singleton.StageGameOver();
} }
} }

View File

@@ -14,6 +14,9 @@ namespace TON
{ {
rechargeModal.SetActive(false); rechargeModal.SetActive(false);
// 해당 UI 노출과 함께 게임 클리어 정보 저장장
StageManager.Singleton.StageClear();
// TODO: 획득한 아이템 리스트 출력 로직 구현 // TODO: 획득한 아이템 리스트 출력 로직 구현
// TODO: 획득한 아이템 정보 저장 로직 구현 // TODO: 획득한 아이템 정보 저장 로직 구현
@@ -55,7 +58,7 @@ namespace TON
public void OnClickAdButton() public void OnClickAdButton()
{ {
// TODO: 광고 시청 로직 추가, 골드 보상 2배 적용 후 Lobby로 이동 // TODO: 광고 시청 로직 추가, 하트를 충전
Debug.Log("OnClickAdButton::: "); Debug.Log("OnClickAdButton::: ");
} }