1 2 3 4 5 6 7
extends TowerComponent func on_shoot(target: Unit): var effect = preload("res://Effects/SlowEffect.tscn").instantiate() effect.level = level target.add_effect(effect)