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.
 
 

17 lines
254 B

  1. extends Node
  2. class_name BasisInteraction
  3. export var auto_connect_on_ready := true
  4. func _ready():
  5. init()
  6. if auto_connect_on_ready:
  7. get_parent().connect("on_interact", self, "on_interact")
  8. func init():
  9. pass
  10. func on_interact():
  11. print("interact")