DEG-15 [Fix] null 오류 체크
This commit is contained in:
parent
349c07acde
commit
15384a1e28
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user