spirit.gd 215 B

1234567891011
  1. extends Area2D
  2. func _on_body_enter(body):
  3. if (body extends preload("res://Scripts/player.gd")):
  4. get_node("/root/global").next_level()
  5. func _ready():
  6. connect("body_enter", self, "_on_body_enter")