extends Node3D class_name Scene func _input(event: InputEvent) -> void: if event.is_action_pressed("left_click"): Input.mouse_mode = Input.MOUSE_MODE_CAPTURED elif event.is_action_pressed("ui_cancel"): if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE: get_tree().quit() else: Input.mouse_mode = Input.MOUSE_MODE_VISIBLE