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
214 B

  1. extends Area
  2. export var yarnScript : Resource
  3. var enabled := false
  4. func enable():
  5. enabled = true
  6. func on_touch(body):
  7. if enabled:
  8. EventDispatcher.emit_signal("trigger_script", yarnScript)
  9. enabled = false