13 lines
308 B
GDScript
13 lines
308 B
GDScript
extends Control
|
|
|
|
func _ready():
|
|
setup_level_box()
|
|
|
|
func setup_level_box():
|
|
for box in $Background/ClipControl/GridContainer.get_children():
|
|
box.level_num = box.get_index() + 1
|
|
box.locked = false
|
|
|
|
|
|
func _on_quit_button_pressed():
|
|
get_tree().change_scene_to_file("res://menu/main_menu/MainMenu.tscn")
|