pegchamp/Menu/WinScreenScoreLabel.gd

9 lines
179 B
GDScript3
Raw Normal View History

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