12 lines
256 B
GDScript
12 lines
256 B
GDScript
@abstract
|
|
class_name BulletAction
|
|
extends Resource
|
|
|
|
|
|
## 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
|