2020-07-18 15:58:23 -05:00
|
|
|
extends Position2D
|
|
|
|
|
|
|
|
func clear_conduit():
|
|
|
|
for c in get_children():
|
|
|
|
c.queue_free()
|
|
|
|
|
|
|
|
func set_current_conduit(conduit):
|
|
|
|
clear_conduit()
|
|
|
|
add_child(conduit.instance())
|
2020-07-19 18:36:36 -05:00
|
|
|
|
|
|
|
func _process(delta):
|
|
|
|
if Input.is_action_pressed("shoot") and get_child_count() != 0:
|
|
|
|
get_children()[0].fire(get_parent().Inventory.active_projectile, null)
|