Work on pickups and multiplayer
This commit is contained in:
17
scripts/collectable.gd
Normal file
17
scripts/collectable.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user