ape-ame/GameManager.gd

16 lines
304 B
GDScript3
Raw Normal View History

2024-04-16 20:29:45 -04:00
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()