Init
This commit is contained in:
9
scripts/actions/action_pickup.gd
Normal file
9
scripts/actions/action_pickup.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
class_name ActionPickup
|
||||
extends ClickAction
|
||||
|
||||
@export var item_id: String = ""
|
||||
@export var destroy_path: NodePath
|
||||
|
||||
func execute(clickable: Node, hit_position: Vector3) -> void:
|
||||
clickable.get_node(destroy_path).queue_free()
|
||||
print("Picked up: " + item_id)
|
||||
Reference in New Issue
Block a user