summaryrefslogtreecommitdiff
path: root/Towers/Components/FrostComponent.gd
blob: 2443b70ec76edbda537ca01a559ac61dd7e25c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extends TowerComponent


func _init() -> void:
	type = ComponentType.Frost
	set_sprite(preload("res://Towers/Components/Assets/frost-component.png"))


func on_shoot(target: Unit):
	var effect = preload("res://Effects/SlowEffect.tscn").instantiate()
	effect.level = level
	target.add_effect(effect)