Files
net-gunner/scripts/collectable.gd

18 lines
241 B
GDScript3
Raw Normal View History

2026-03-19 23:50:29 -04:00
class_name Pickup extends Area3D
enum Type{
DATABLOCK,
INTEGRITY,
SCAN,
BASIC_HACK,
ADVANCED_HACK
}
@export var type : Type
func _on_body_entered(body: Node3D) -> void:
if body is PawnController:
body.pickup(type)
queue_free()