time to bed

This commit is contained in:
2023-03-08 13:40:01 +02:00
parent 1c8876c99c
commit bcaa786e7c
7 changed files with 1362 additions and 38 deletions
+10 -1
View File
@@ -1,11 +1,20 @@
using System;
using UnityEngine;
public class Bed : BaseInteractableObject
{
private Player _player;
public override void Interact(Player player)
{
_player=player;
Debug.Log("Sitting");
player.SetPlayerAnimation(AnimationStates.Sitting);
TimeManager.Instance.FastForward(TimeSpan.FromHours(8), OnFastForwardEnd);
}
private void OnFastForwardEnd()
{
_player.SetPlayerAnimation(AnimationStates.Standing);
}
}