|
@@ -21,7 +21,7 @@ func _on_chocolate_tablet_body_entered(body: Node3D) -> void:
|
|
|
|
|
|
func _give_chocolate_to(walker: Walker) -> void:
|
|
func _give_chocolate_to(walker: Walker) -> void:
|
|
walker.give_chocolate()
|
|
walker.give_chocolate()
|
|
- reparent(walker)
|
|
|
|
|
|
+ reparent.call_deferred(walker)
|
|
chocolateAnimation.play(COLLECT_ANIM)
|
|
chocolateAnimation.play(COLLECT_ANIM)
|
|
chocolateAnimation.animation_finished.connect(_finish)
|
|
chocolateAnimation.animation_finished.connect(_finish)
|
|
pickupSound.play()
|
|
pickupSound.play()
|