Shovel done
This commit is contained in:
parent
47a3ca3db2
commit
c1f9f61b0c
5 changed files with 18 additions and 6 deletions
|
|
@ -71,7 +71,7 @@ public partial class PlantField : Node2D
|
|||
var plant = _resource.Scene.Instantiate<RuntimePlantData>();
|
||||
LevelController.Instance.Pools.Plants.AddChild(plant);
|
||||
plant.GlobalPosition = (_plantSetter.GlobalPosition / tile).Ceil() * tile - new Vector2(20, 14);
|
||||
plant.Layer = _resource.Layer;
|
||||
plant.Resource = _resource;
|
||||
|
||||
LevelController.Instance.Pools.EntityField[_resource.Layer].Add(plant.GlobalPosition, plant as IEntity);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue