Files
whale_town/Scripts/NoticeBoard.gd
WangXiang 6119faf53e init
2025-12-22 18:57:51 +08:00

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