class_name TowerComponent extends Resource var name: String var sprite: Sprite2D = Sprite2D.new() func set_sprite(texture: Texture2D): sprite.texture = texture sprite.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST sprite.centered = false sprite.scale = Vector2(2, 2) sprite.name = name