diff --git a/Assets/KSH/GameManager.cs b/Assets/KSH/GameManager.cs index 8082bc57..80b0725b 100644 --- a/Assets/KSH/GameManager.cs +++ b/Assets/KSH/GameManager.cs @@ -24,11 +24,12 @@ public class GameManager : Singleton if (playerStats == null) { playerStats = FindObjectOfType(); - if (playerStats == null) - { - Debug.LogError("PlayerStats 컴포넌트를 찾을 수 없습니다. 함께 추가해주세요."); - return; - } + } + + if (playerStats == null) + { + Debug.LogError("PlayerStats 컴포넌트를 찾을 수 없습니다."); + return; } playerStats.OnDayEnded += AdvanceDay; } diff --git a/Assets/KSH/PlayerStats.cs b/Assets/KSH/PlayerStats.cs index 68bde807..703c3a1f 100644 --- a/Assets/KSH/PlayerStats.cs +++ b/Assets/KSH/PlayerStats.cs @@ -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 // 수면 이외의 행동