You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
376 B

extends Label
var _counter : int = 10
# Called when the node enters the scene tree for the first time.
func _ready():
_counter = 10
func init(value:int):
_counter = value
set_text("%d" % _counter)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
pass
func _on_next_round():
_counter -= 1
set_text("%d" % _counter)