16 lines
313 B
GDScript
16 lines
313 B
GDScript
class_name BaseEffect
|
|
extends Resource
|
|
|
|
@export var duration: float = 0.5
|
|
|
|
# Called when the effect is applied
|
|
func start(target: Node) -> void:
|
|
pass
|
|
|
|
# Called every frame (if needed)
|
|
func process(delta: float) -> void:
|
|
pass
|
|
|
|
# Clean up any changes to the target
|
|
func stop(target: Node) -> void:
|
|
pass
|