diff --git a/maps/map.gd b/maps/map.gd index ca998d1..4388271 100644 --- a/maps/map.gd +++ b/maps/map.gd @@ -23,7 +23,7 @@ func _physics_process(delta): get_parent().add_child(Game.pause_screen.instance()) # restart level if Input.is_action_just_pressed("restart"): - call_deferred("restart_level") + Game.call_deferred("restart_level") if Game.golds == 50 && Game.shards == 5: #Time bonus