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


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


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