22 lines
564 B
GDScript
22 lines
564 B
GDScript
extends Node
|
|
#extends Node
|
|
#
|
|
## Exports
|
|
#@export var arrow_parent: Node2D
|
|
#
|
|
## Preloads
|
|
#const wooden_arrow_scene: PackedScene = preload("uid://b2wq5m01b68rx")
|
|
#
|
|
## Private Methods
|
|
#func _ready() -> void:
|
|
#firing_arrow_state.ArrowFired.connect(_on_arrow_fired)
|
|
#
|
|
#
|
|
#func _on_arrow_fired(fire_position: Vector2, direction: Vector2) -> void:
|
|
#var wooden_arrow := wooden_arrow_scene.instantiate() as BaseProjectile
|
|
#wooden_arrow.SetProjectileStartAndDirection(fire_position, direction)
|
|
#
|
|
#if arrow_parent == null:
|
|
#return
|
|
#arrow_parent.add_child(wooden_arrow)
|