Made particles emit from resource
This commit is contained in:
@@ -8,7 +8,8 @@ var _building_data: Building
|
||||
func initialize(data: Building, grid_location: Vector2i) -> void:
|
||||
_building_data = data
|
||||
position = Grid.grid_to_world_center(grid_location)
|
||||
_building_data.ready(self)
|
||||
_building_data.initialize(self)
|
||||
|
||||
func _ready() -> void:
|
||||
sprite_2d.texture = _building_data.atlas_texture
|
||||
_building_data.ready(self)
|
||||
|
||||
Reference in New Issue
Block a user