11 lines
147 B
GDScript
11 lines
147 B
GDScript
extends Button
|
|
|
|
|
|
@export var id: int
|
|
|
|
|
|
func _on_pressed() -> void:
|
|
BuildManager.selected_object_id = id
|
|
print(BuildManager.selected_object_id)
|
|
|