diff options
Diffstat (limited to 'Scripts/game.gd')
-rw-r--r-- | Scripts/game.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/game.gd b/Scripts/game.gd index 3c4326f..42918c5 100644 --- a/Scripts/game.gd +++ b/Scripts/game.gd @@ -24,7 +24,7 @@ func _ready(): func _process(delta): if Input.is_action_just_pressed("ui_cancel"): get_tree().paused = true - $PausePopup.show() + $CanvasLayer/PausePopup.show() Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) @@ -33,7 +33,7 @@ func _on_QuitButton_pressed(): func _on_ResumeButton_pressed(): - $PausePopup.hide() + $CanvasLayer/PausePopup.hide() get_tree().paused = false Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) |