25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
234 B

  1. extends Node
  2. export var character_data : Resource
  3. func spawn():
  4. var inst = character_data.scene.instance()
  5. inst.name = character_data.name
  6. if character_data.yarn != null:
  7. inst.yarn_script = character_data.yarn
  8. add_child(inst)