public BuildingGridField(GridAssets assets) { var creationCallback = new Func <int, int, BuildingGridCell>((x, y) => new BuildingGridCell(x, y)); Grid = new GridXZ <BuildingGridCell>(assets.Width, assets.Height, assets.CellSize, Vector3.zero, creationCallback); }
public void Inject(IBuildingConstructor constructor, GridAssets gridAssets) { this.constructor = constructor; this.gridAssets = gridAssets; }