pickup geluidje voor flashlight en sleutel

This commit is contained in:
2023-02-08 21:27:02 +01:00
parent 83aaf9ca4e
commit 1673d8e210
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -19,3 +19,4 @@ func _on_sleutel_input_event(_camera, event, _position, _normal, _shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Kast/Drawer/Sleutel.visible = false
get_node("../Player").has_key = true
get_node("../Player/Pickup").playing = true