diff options
Diffstat (limited to 'scripts/PlayerCharacter.gd')
| -rw-r--r-- | scripts/PlayerCharacter.gd | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/PlayerCharacter.gd b/scripts/PlayerCharacter.gd index 3cf4518..4e194d0 100644 --- a/scripts/PlayerCharacter.gd +++ b/scripts/PlayerCharacter.gd @@ -39,14 +39,10 @@ func _process(_delta): $Sprite.set_scale(Vector2(look_dir, 1)) -func run_dialogue(other): +func run_dialogue(other: Node2D): dialogue_active_with = other - var dialogues: Array = other.get_dialogue() - for d in dialogues: - var name = d["name"] - var body = d["body"] - print("[%s] %s" % [name, body]) - + var game: Game = get_tree().get_root().get_node("Game") + game.run_dialogue(other) func _physics_process(_delta): get_input() |
