fix: 랭킹 데이터 없는 경우 오류 발생하지 않도록 수정

This commit is contained in:
aube.lee
2025-03-05 22:29:32 +09:00
parent fb57409c33
commit 3b9c8c0dc0
2 changed files with 6 additions and 1 deletions

View File

@@ -77,6 +77,11 @@ namespace TON
/// </summary>
private void InsertInitData(ClearData clearData, System.Action onComplete = null)
{
if (PlayerDataManager.Singleton.player == null)
{
return;
}
Param param = new Param();
param.Add("score", clearData.score);
param.Add("wave", clearData.wave);