mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 17:14:20 +00:00
15 lines
242 B
GDScript3
15 lines
242 B
GDScript3
|
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)
|