]> Untitled Git - william-skin.git/blob - test/test.gd
9780536e5fd94b2bfa332b609be1a39b77689956
[william-skin.git] / test / test.gd
1 extends Node3D
2
3
4 @onready var player = $player
5
6
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:
12                         get_tree().quit()
13                 else:
14                         Input.mouse_mode = Input.MOUSE_MODE_VISIBLE