Files
hsgj25-growth/growth/BaseCard/BaseCard.gd
2025-10-05 01:56:01 +02:00

17 lines
306 B
GDScript

extends Control
class_name BaseCard
@export var behaviors = []
@export var title = ""
func _ready() -> void:
for behavior in behaviors:
$Behaviors.add_child(behavior.instantiate())
func activate(world, activator):
for behavior in $Behaviors.get_children():
behavior.activate(world, activator)