11 lines
393 B
GDScript
11 lines
393 B
GDScript
extends Node3D
|
|
|
|
func _ready() -> void:
|
|
# Assign dialogue resources after the plugin has imported the .dialogue files.
|
|
# Once the DialogueManager plugin is enabled in the editor, you can assign
|
|
# dialogueResource directly in the Inspector instead.
|
|
var npc:Entity = $NotPlayer
|
|
if npc:
|
|
npc.dialogueResource = load("res://dialogue/npc/test.dialogue")
|
|
npc.dialogueTitle = "start"
|