level_end.gd 163 B

123456
  1. extends Area2D
  2. func _on_area_entered(player: Area2D) -> void:
  3. if player.state == Display.State.PLAYER:
  4. SceneManager.change_to_scene(SceneManager.level_select)