paratate/systems/bullets/actions/multi_action.gd

12 lines
285 B
GDScript

class_name MultiAction
extends BulletAction
## Performs a set of [BulletAction]s in order when triggered.
## [BulletAction]s to perform when triggered.
@export var actions: Array[BulletAction]
func _perform(bullet: Bullet) -> void:
for action in actions:
action.perform(bullet)