14 lines
347 B
GDScript
14 lines
347 B
GDScript
extends StaticBody2D
|
|
|
|
func interact():
|
|
print("Interacted with Notice Board")
|
|
|
|
# Check if dialog already exists
|
|
if get_tree().root.has_node("NoticeDialog"):
|
|
return
|
|
|
|
var dialog = preload("res://Scenes/UI/NoticeDialog.tscn").instantiate()
|
|
dialog.name = "NoticeDialog"
|
|
get_tree().root.add_child(dialog)
|
|
return null # No bubble text needed
|