hero-mark-2/menus/marathon_results.gd

16 lines
380 B
GDScript

extends Control
onready var score: Label = $"%Score"
onready var shards: Label = $"%Shards"
func _ready() -> void:
score.text = score.text % Game.marathon_score
shards.text = shards.text % Game.marathon_shards
Fade.fade_in()
func _input(event: InputEvent) -> void:
if Input.is_action_just_pressed("ui_accept"):
Game.change_map(load("res://menus/marathon_start.tscn"))