extends Node3D
@onready var pause_menu = $PauseMenu

var paused = false

func _process(delta):
	if Input.is_action_just_pressed("ui_cancel"):
		pauseMenu()
		
func pauseMenu():
	if paused:
		pause_menu.hide()
		Engine.time_scale = 1
	else:
		pause_menu.show()
		Engine.time_scale = 0
	
	paused = !paused
