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