9 lines
193 B
GDScript
9 lines
193 B
GDScript
extends Node3D
|
|
|
|
@onready var button = $Button
|
|
@export var id: String = "0"
|
|
|
|
func set_device_name(text):
|
|
assert(button != null, "Device has to be added to the scene tree")
|
|
button.label = text
|