REM/scripts/pause_menu.gd
2026-03-26 20:37:29 -06:00

11 lines
387 B
GDScript

extends Control
@onready var inventory: Control = get_tree().get_first_node_in_group("inventory")
func _physics_process(_delta: float) -> void:
##Prevent crash if pause menu not found (like during isolated testing)
if inventory != null:
if Input.is_action_just_pressed("pause_game"): #and inventory.visible == false:
Global.change_paused_state()
self.visible = !self.visible