sleep increase the energy
This commit is contained in:
@@ -12,11 +12,13 @@ public class Bed : BaseInteractableObject
|
||||
|
||||
private void OnAnimationFinished()
|
||||
{
|
||||
_player.SetPlayerActing(PlayerStates.Sleeping);
|
||||
TimeManager.Instance.FastForward(TimeSpan.FromHours(8), OnFastForwardEnd);
|
||||
}
|
||||
|
||||
private void OnFastForwardEnd()
|
||||
{
|
||||
_player.SetPlayerActing(PlayerStates.Awake);
|
||||
_player.SetPlayerAnimation(AnimationStates.Standing);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user