21 lines
478 B
C#
21 lines
478 B
C#
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);
|
|
}
|
|
}
|