mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-28 18:34:18 +00:00
14 lines
242 B
GDScript
14 lines
242 B
GDScript
extends Control
|
|
|
|
class_name ScoreBoard
|
|
|
|
@export var score: int = 0
|
|
|
|
func _ready():
|
|
$Label.text = "Score: " + str(score)
|
|
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _on_evaluator_score_changed(total_value):
|
|
$Label.text = "Score: " + str(total_value)
|