lever sound
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user