pegchamp/Menu/WinScreenScoreLabel.gd

9 lines
194 B
GDScript3
Raw Normal View History

2021-10-01 14:23:48 +00:00
extends Label
func _ready():
2021-10-18 11:25:09 +00:00
var _connect = GameStats.connect("score_changed", self, "update_score_text")
2021-10-01 14:23:48 +00:00
text = String(GameStats.score)
func update_score_text(value):
text = String(value)