feat: 게임 플레이 종료 후 클리어 정보 저장 및 랭킹 정보 저장 로직 추가

This commit is contained in:
aube.lee
2025-02-28 00:55:35 +09:00
parent 1f2e329d55
commit 17e824e29e
9 changed files with 329 additions and 44 deletions

View File

@@ -72,6 +72,19 @@ namespace TON
// UpdateUI();
});
}
// 플레이어가 사망했을때 호출
public void PlayerDeadEvent()
{
Invoke(nameof(ShowGameEndUI), 3f);
}
private void ShowGameEndUI()
{
UIManager.Show<GameWinUI>(UIList.GameWinUI);
}
// 공격력과 방어력 업데이트
private void UpdateStats(int currentLevel)
{