pegchamp/HUD/Score.gd
2021-10-01 16:23:48 +02:00

8 lines
182 B
GDScript

extends Label
func _ready():
update_text(GameStats.score)
var _connected = GameStats.connect("score_changed", self, "update_text")
func update_text(value):
text = String(value)