This commit is contained in:
Nikolai Fesenko
2025-08-24 15:22:34 +02:00
parent e32a58f416
commit 8d00b1a40f
7 changed files with 31 additions and 13 deletions

View File

@@ -39,8 +39,10 @@ func _input(event: InputEvent) -> void:
show_context_menu.emit()
func _on_interact(person, object):
object.start_action(person, object)
if object.name == "ActionNode":
object.start_action(person, object)
else:
object.ActionNode.start_action(person, object)
func _on_object_selected(object):
if object_selected != null and object != object_selected: