diff --git a/island/Seeds.gd b/island/Seeds.gd index ef0a34f..5b9e7c8 100644 --- a/island/Seeds.gd +++ b/island/Seeds.gd @@ -3,7 +3,9 @@ extends RigidBody3D @export var value = 5 +@onready var player := Singletons.player + func _on_collectible_by_player_collected(): - var ps: PeaShooter = Singletons.player.get_node("Head/OnHand/PeaShooter") + var ps: PeaShooter = player.get_node("Head/OnHand/PeaShooter") ps.remaining += value