diff --git a/island/Pineapple.gd b/island/Pineapple.gd index 0c5c0bb..5b50d9a 100644 --- a/island/Pineapple.gd +++ b/island/Pineapple.gd @@ -1 +1,10 @@ extends RigidBody3D + + +@onready var player := Singletons.player + + +func _on_collectible_by_player_collected(): + # var player: Node3D = Singletons.player + # player.scale *= 1.05 + pass diff --git a/island/Pineapple.tscn b/island/Pineapple.tscn index 09977b4..d00529c 100644 --- a/island/Pineapple.tscn +++ b/island/Pineapple.tscn @@ -38,5 +38,7 @@ target_path = NodePath("..") [node name="CanSplash" parent="." instance=ExtResource("7_3mgie")] +[connection signal="collected" from="CollectibleByPlayer" to="." method="_on_collectible_by_player_collected"] + [editable path="MoveTowardsPlayer"] [editable path="CollectibleByPlayer"]