Interactable.gd 275 B

123456789101112131415161718
  1. extends Spatial
  2. class_name Interactable
  3. var epl = false
  4. onready var PLAYER = find_parent("MAIN").find_node("Player")
  5. var MAIN : MainNode
  6. func _ready():
  7. epl = find_node("EPlace")
  8. MAIN = find_parent("MAIN")
  9. func bump_E():
  10. if epl:
  11. epl.visible = true
  12. epl.stay += 2