Move interactable input handling into Player2D so we can selectively block it from working if OldComputer is open
ci/woodpecker/push/woodpecker Pipeline was successful

We probably could have special-cased that check in Interactable now that I think about it
This commit is contained in:
yagigreg committed 2026-10-18 02:05:51 -05:00
1 parent f061e1905f
commit 93baf56fd5
4 files changed
+17 -9

No files matched your search

+4
View File
@@ -123,6 +123,10 @@ func _process(delta: float) -> void:
%OldComputer.close()
return
if Input.is_action_just_released("interact"):
for interactable in get_tree().get_nodes_in_group("nearby_interactables"):
interactable.interact()
if Input.is_action_just_pressed("jump"):
%OldComputer.close()