sleep increase the energy

This commit is contained in:
Vladimir Koshevarov
2023-03-14 13:36:24 +02:00
parent f6a8ca9d9d
commit dbd1d16a24
9 changed files with 60 additions and 76 deletions
@@ -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);
}
}