added new animations

This commit is contained in:
Vladimir Koshevarov
2023-02-22 18:06:13 +02:00
parent a1e0316db5
commit 31eb9fb04a
14 changed files with 25407 additions and 66 deletions
@@ -4,7 +4,7 @@ public class BaseInteractableObject : MonoBehaviour
{
[SerializeField]
public Transform _playerArrivePoint;
public virtual void Interact()
public virtual void Interact(Player player)
{
Debug.Log("Interact with some object");
}
+2 -1
View File
@@ -3,8 +3,9 @@ using UnityEngine;
public class Bed : BaseInteractableObject
{
public override void Interact()
public override void Interact(Player player)
{
Debug.Log("Interact with bed");
player.SetPlayerState(ActionStates.Sitting);
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ using UnityEngine;
public class Fridge : BaseInteractableObject
{
public override void Interact()
public override void Interact(Player player)
{
Debug.Log("Interact with Fridge");
}