Files
escape/lichtknop.gd
T
2023-01-29 22:35:02 +01:00

7 lines
225 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