14 lines
300 B
GDScript
14 lines
300 B
GDScript
extends TextureButton
|
|
|
|
var TimerStart: bool = false
|
|
var timee: float = 4
|
|
|
|
func _process(delta):
|
|
get_node("Label").text = str(round(timee))
|
|
if TimerStart == true:
|
|
timee -= delta
|
|
if timee <= 0:
|
|
get_tree().change_scene_to_file("res://Scenes/Start.tscn")
|
|
|
|
func _on_pressed():
|
|
TimerStart = true
|