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.
|
- extends Node
-
- export var character_data : Resource
-
- var interaction_component : BasisInteraction
-
- func spawn():
- var inst = character_data.scene.instance()
- inst.name = character_data.name
- if character_data.yarn != null:
- interaction_component = TalkInteraction.new()
- interaction_component.name = character_data.yarn.resource_name
- interaction_component.yarn_script = character_data.yarn
- inst.add_child(interaction_component)
- add_child(inst)
|