4 @onready var player = $player
7 func _input(event: InputEvent) -> void:
8 if event.is_action_pressed("left_click"):
9 Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
10 elif event.is_action_pressed("ui_cancel"):
11 if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE:
14 Input.mouse_mode = Input.MOUSE_MODE_VISIBLE