15 lines
304 B
GDScript
15 lines
304 B
GDScript
extends Node2D
|
|
|
|
|
|
func _ready():
|
|
process_mode = Node.PROCESS_MODE_ALWAYS
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func _input(event):
|
|
if event.is_action_pressed("restart"):
|
|
get_tree().paused = false
|
|
get_tree().reload_current_scene()
|