lever sound

This commit is contained in:
2023-02-08 21:04:23 +01:00
parent 7dd2dab6e3
commit 6a2df611c0
4 changed files with 32 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ func _on_lock_input_event(_camera, event, _position, _normal, _shape_idx):
func _on_lever_input_event(_camera, event, _position, _normal, _shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Lever/LeverOmhaal.playing = true
$Lever.rotation.z = $Lever.rotation.z + PI
indirect_light.visible = !indirect_light.visible
if indirect_light.visible: