You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
369 B

  1. extends Node
  2. export var character_data : Resource
  3. func _ready():
  4. var inst = character_data.scene.instance()
  5. inst.name = character_data.name
  6. if character_data.yarn != null:
  7. var yarn_runner := TalkInteraction.new()
  8. yarn_runner.name = character_data.yarn.resource_name
  9. yarn_runner.yarnScript = character_data.yarn
  10. inst.add_child(yarn_runner)
  11. add_child(inst)