1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2025-02-16 16:13:57 +00:00
cinnos/obstacles/dialog.gd

13 lines
256 B
GDScript3
Raw Normal View History

2023-11-25 16:28:03 +01:00
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):
2023-11-25 16:40:28 +01:00
if body is Player:
textbox.display(text, duration)