DEG-15 [Fix] 피드백 반영

This commit is contained in:
Sehyeon 2025-04-18 14:20:23 +09:00
parent ecc280b86f
commit a10f257d1c
2 changed files with 8 additions and 7 deletions

View File

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

View File

@ -97,7 +97,7 @@ public class PlayerStats : MonoBehaviour
else if (actionType == ActionType.OverSlept) // 늦잠, 오전 8시에 행동을 결정하기에 하루 지남 X
{
// 다음 날 오후 3~6시 사이 기상, 추가 체력 회복
float randomWakeUpTime = Random.Range(15, 18);
float randomWakeUpTime = Random.Range(15, 19);
TimeStat = randomWakeUpTime;
// 추가 체력 회복
@ -112,7 +112,7 @@ public class PlayerStats : MonoBehaviour
isDayEnded = !isEarlyMorning;
// 다음 날 오후 3~6시 사이 기상
float randomWakeUpTime = Random.Range(15, 18);
float randomWakeUpTime = Random.Range(15, 19);
TimeStat = randomWakeUpTime;
}
else // 수면 이외의 행동