12 lines
290 B
GDScript
12 lines
290 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)
|