pir-serious-game-ethics/mini-game/scenes/decor/scoreUI.gd
2021-04-08 12:17:48 +02:00

11 lines
201 B
GDScript

extends Control
onready var label : RichTextLabel = $RichTextLabel
func _ready():
Signals.connect("update_score",self,"update_score")
func update_score(score: int):
label.text = String(score)