13 lines
247 B
GDScript3
13 lines
247 B
GDScript3
|
extends StaticBody3D
|
||
|
|
||
|
@onready var label: Label3D = $Label
|
||
|
|
||
|
signal click(name: String)
|
||
|
|
||
|
func _on_toggle():
|
||
|
click.emit(label.text)
|
||
|
|
||
|
func set_entity_name(text):
|
||
|
assert(label != null, "Entity has to be added to the scene tree")
|
||
|
label.text = text
|