updates. joe

This commit is contained in:
2023-02-05 21:56:24 +01:00
parent 9c156b2f8f
commit dace1fa599
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -15,5 +15,5 @@ func get_number():
func _on_static_body_3d_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Body/Knop/Audio.playing = true
if true or get_number() == combination:
if get_number() == combination:
$".."/Einde.eindig()
+2
View File
@@ -10,7 +10,9 @@ func switch_fish():
func _on_knop_input_event(camera, event, position, normal, shape_idx):
if event is InputEventMouseButton and event.is_action_pressed("interact"):
$Music.playing = !$Music.playing
$"../Muziek".playing = !$Music.playing
switch_fish()
func _on_music_finished():
$"../Muziek".playing = true
switch_fish()