diff --git a/scenes/PauseMenu.gd b/scenes/PauseMenu.gd index 80a77d2..390d657 100644 --- a/scenes/PauseMenu.gd +++ b/scenes/PauseMenu.gd @@ -17,6 +17,9 @@ func _input(event: InputEvent): if event.is_action_pressed("ui_cancel") and visible: unpause() get_tree().set_input_as_handled() + elif event.is_action_pressed("ui_cancel") and not visible: + pause() + get_tree().set_input_as_handled() func _on_BackgroundButton_pressed():