extends Control @onready var God = get_tree().root.get_node("world/God") func _physics_process(delta): if Input.is_action_just_pressed(name): self.visible = !self.visible Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE if self.visible else Input.MOUSE_MODE_CAPTURED) God.get_node("Camera/eye").enabled = !self.visible