2023-11-11 19:17:25 +02:00
|
|
|
extends Node3D
|
2023-10-30 02:21:50 +02:00
|
|
|
|
2023-11-26 04:06:31 +02:00
|
|
|
@onready var button = $Button
|
2023-10-31 23:15:33 +02:00
|
|
|
@export var id: String = "0"
|
2023-10-30 02:21:50 +02:00
|
|
|
|
|
|
|
func set_device_name(text):
|
2023-11-26 04:06:31 +02:00
|
|
|
assert(button != null, "Device has to be added to the scene tree")
|
|
|
|
button.label = text
|