Hover over text now grabs text from object your looking at for custom text on every object

This commit is contained in:
2024-06-05 14:14:37 -05:00
parent 454c39cb50
commit 8eedc33456
2 changed files with 2 additions and 2 deletions

View File

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