pegchamp/Menu/LevelInfo.gd
2021-09-14 12:22:39 +02:00

12 lines
323 B
GDScript

extends VBoxContainer
func _ready():
var _game_stats = GameStats.connect("current_stage_changed", self, "update_info")
func update_info(stage):
$HBoxContainer/PlayButton.disabled = false
var Stage = load(stage)
stage = Stage.instance()
$ScoreLabel.text = stage.stage_name
$HBoxContainer/PlayButton.visible = true