1 2 3 4 5 6 7 8 9 10 11 12 13
class_name HUD extends CanvasLayer var size: Vector2: get(): return get_child(0).size var score: int: set(value): score = value %Score.text = str(score)