bm-frontend-defence/Source/Start.gd
2022-01-28 00:35:46 +01:00

25 lines
527 B
GDScript3

extends Timer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _input(event):
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT:
get_tree().change_scene("res://Main.tscn")
func _on_Timer_timeout():
get_tree().change_scene("res://Main.tscn")