time to bed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user