Files
SimUL/Assets/Scripts/InteractableObjects/Bed.cs
T
Vladimir Koshevarov 26bb1878c5 Added sitting animation
2023-02-27 19:04:16 +02:00

14 lines
308 B
C#

using UnityEngine;
public class Bed : BaseInteractableObject
{
public override void Interact(Player player)
{
Debug.Log("rotate player");
player.Rotate(_playerArrivePoint.transform.forward);
Debug.Log("Sitting");
player.SetPlayerState(ActionStates.Sitting);
}
}