Files
2023-02-07 16:54:29 +01:00

7 lines
229 B
GDScript

extends StaticBody3D
func _on_input_event(_camera, event, _position, _normal, _shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Light.visible = !$Light.visible
$Audio.playing = true