flashlight click

This commit is contained in:
mark committed 2023-02-08 21:14:30 +01:00
1 parent 6a2df611c0
commit 83aaf9ca4e
6 files changed
+57 -1

No files matched your search

+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):