13 lines
311 B
GDScript
13 lines
311 B
GDScript
@abstract
|
|
class_name BulletAction
|
|
extends Resource
|
|
## An action that a bullet can perform when triggered.
|
|
|
|
|
|
## Performs the action on a given [Bullet].
|
|
func perform(bullet: Bullet) -> void:
|
|
_perform(bullet)
|
|
|
|
|
|
## Called to perform the action on a given [Bullet].
|
|
@abstract func _perform(bullet: Bullet) -> void
|