flashlight click

This commit is contained in:
2023-02-08 21:14:30 +01:00
parent 6a2df611c0
commit 83aaf9ca4e
6 changed files with 57 additions and 1 deletions
+1
View File
@@ -24,6 +24,7 @@ func _input(event):
mouse_mode = mouse_mode ^ 1
Input.set_mouse_mode(mouse_mode)
elif event.is_action_pressed("alt") and has_flashlight:
$Pivot/Camera/FlashLight/Klik.playing = true
$Pivot/Camera/FlashLight/SpotLight3D.visible = !$Pivot/Camera/FlashLight/SpotLight3D.visible
func _physics_process(delta):