10 lines
274 B
GDScript3
10 lines
274 B
GDScript3
|
extends Control
|
||
|
|
||
|
func _ready() -> void:
|
||
|
%score.text = str(Scoring.score) + " pts"
|
||
|
%boxes.text = str(Scoring.boxes_passed) + " boxes"
|
||
|
func _on_retry_pressed() -> void:
|
||
|
get_tree().change_scene_to_file("res://main.tscn")
|
||
|
func _on_quit_pressed() -> void:
|
||
|
get_tree().quit()
|