2022-10-12 19:01:57 -04:00
|
|
|
extends Spatial
|
|
|
|
|
|
|
|
|
|
|
|
# Declare member variables here. Examples:
|
|
|
|
# var a = 2
|
|
|
|
# var b = "text"
|
2022-10-12 20:13:11 -04:00
|
|
|
onready var Timer = $Timer
|
|
|
|
var stop = false;
|
2022-10-12 19:01:57 -04:00
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
2022-10-12 20:13:11 -04:00
|
|
|
Timer.start()
|
2022-10-12 19:01:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _input(event):
|
|
|
|
if event is InputEventKey and event.pressed:
|
2022-10-12 20:13:11 -04:00
|
|
|
if stop:
|
|
|
|
get_tree().quit()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_Timer_timeout():
|
|
|
|
stop = true
|