pegchamp/Menu/Buttons/LevelSelectButton.gd
2021-09-28 17:55:03 +02:00

11 lines
263 B
GDScript

extends Button
export var scene = "res://Menu/MainMenu.tscn"
export var unlock_points_required = 0
func _ready():
if unlock_points_required > GameStats.unlock_points:
disabled = true
func _on_SceneSelectButton_pressed():
GameStats.set_current_scene(scene)