DEG-15 [Fix] null 오류 체크

This commit is contained in:
Sehyeon 2025-04-17 13:20:55 +09:00
parent 349c07acde
commit 15384a1e28

View File

@ -27,6 +27,7 @@ public class GameManager : Singleton<GameManager>
if (playerStats == null) if (playerStats == null)
{ {
Debug.LogError("PlayerStats 컴포넌트를 찾을 수 없습니다. 함께 추가해주세요."); Debug.LogError("PlayerStats 컴포넌트를 찾을 수 없습니다. 함께 추가해주세요.");
return;
} }
} }
playerStats.OnDayEnded += AdvanceDay; playerStats.OnDayEnded += AdvanceDay;