mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-26 01:54:21 +00:00
11 lines
235 B
GDScript
11 lines
235 B
GDScript
extends Area3D
|
|
|
|
|
|
@export var text: String
|
|
@export var duration: float
|
|
|
|
@onready var textbox: TextBox = get_tree().root.find_children("TextBox", "TextBox", true, false)[0]
|
|
|
|
|
|
func _on_body_entered(body):
|
|
textbox.display(text, duration)
|