Added interacted signal to player. Removed deprecated tips

This commit is contained in:
2026-03-16 21:50:31 +03:00
parent b5b2c7691b
commit 489c89e1ac
11 changed files with 47 additions and 135 deletions
@@ -16,8 +16,10 @@ func _ready() -> void:
func _on_body_entered(body: Node2D) -> void:
if body is Player:
hint_sprite.show()
body.interacted.connect(activate)
func _on_body_exited(body: Node2D) -> void:
if body is Player:
hint_sprite.hide()
body.interacted.disconnect(activate)