15 lines
191 B
GDScript3
15 lines
191 B
GDScript3
|
extends StaticBody3D
|
||
|
class_name ItemCard
|
||
|
|
||
|
@export var card : Card
|
||
|
|
||
|
|
||
|
func pick_up() -> Card:
|
||
|
queue_free()
|
||
|
networked_pick_up.rpc()
|
||
|
return card
|
||
|
|
||
|
|
||
|
@rpc func networked_pick_up():
|
||
|
queue_free()
|