1
Fork 0
mirror of https://github.com/Steffo99/pineapple-surf.git synced 2024-11-24 08:44:18 +00:00
pineapple-surf/island/Seeds.gd

12 lines
219 B
GDScript3
Raw Normal View History

2023-01-08 22:58:26 +00:00
extends RigidBody3D
@export var value = 5
@onready var player := Singletons.player
2023-01-08 22:58:26 +00:00
func _on_collectible_by_player_collected():
var ps: PeaShooter = player.get_node("Head/OnHand/PeaShooter")
2023-01-08 22:58:26 +00:00
ps.remaining += value