16 lines
304 B
GDScript3
16 lines
304 B
GDScript3
|
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()
|