restart actually works again

This commit is contained in:
pennyrigate 2023-03-03 23:18:59 -05:00
parent abc448fa0a
commit f989459751

View file

@ -23,7 +23,7 @@ func _physics_process(delta):
get_parent().add_child(Game.pause_screen.instance()) get_parent().add_child(Game.pause_screen.instance())
# restart level # restart level
if Input.is_action_just_pressed("restart"): if Input.is_action_just_pressed("restart"):
call_deferred("restart_level") Game.call_deferred("restart_level")
if Game.golds == 50 && Game.shards == 5: if Game.golds == 50 && Game.shards == 5:
#Time bonus #Time bonus