Added Night stand animation to open and close when interacted with and fixed interaction ray so I don't have to use classes and I can just have it use the intractable physics layer

This commit is contained in:
2024-07-17 00:01:20 -05:00
parent ddb2b3931a
commit e0c2c33495
5 changed files with 145 additions and 2 deletions

View File

@ -10,7 +10,7 @@ func _physics_process(delta):
prompt.text = ""
if is_colliding():
var collider = get_collider()
if collider is Interactable:
if collider:
prompt.text = collider.promt_message
if Input.is_action_just_pressed("interact"):
collider.interact(owner)