Files
project-thor/Scripts/button_select_build.gd
2025-08-15 22:30:48 +02:00

15 lines
220 B
GDScript

extends Button
@export var id: int
func _ready() -> void:
pass
func _on_pressed() -> void:
BuildManager.selected_object_id = id
BuildManager.build_object_selected.emit()
print(BuildManager.selected_object_id)