blob: b18c3d884efdb5ce8ffc55e527c3e1c0b94cf952 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
extends Node2D
signal timeout
func _process(_delta):
if $Timer.time_left < 1 and not $Timer.is_stopped():
emit_signal("timeout")
$CanvasLayer/CenterContainer/countdown.visible = false
$CanvasLayer/CenterContainer/countdown.text = "%d" % $Timer.time_left
# Called when the node enters the scene tree for the first time.
func _ready():
$Timer.start()
|