合并主场景和个人小屋
This commit is contained in:
11
scenes/prefabs/items/NoticeBoard.gd
Normal file
11
scenes/prefabs/items/NoticeBoard.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends StaticBody2D
|
||||
|
||||
func interact():
|
||||
# Check if dialog already exists
|
||||
if get_tree().root.has_node("NoticeDialog"):
|
||||
return
|
||||
|
||||
var dialog = preload("res://scenes/ui/notice_dialog.tscn").instantiate()
|
||||
dialog.name = "NoticeDialog"
|
||||
get_tree().root.add_child(dialog)
|
||||
return null # No bubble text needed
|
||||
Reference in New Issue
Block a user