Ejemplo n.º 1
0
        public void Add(CellResource cellResource)
        {
            SetTile(cellResource.Cell, cellResource.NewResourceTile);
            cellResources.Add(cellResource);

            var cellText = cellResources.Count != 1 ? "cells" : "cell";

            Text = "Added {0} {1} of {2}".F(cellResources.Count, cellText, resourceType.TerrainType);
        }
        public void Add(CellResource resourceCell)
        {
            var density = resourceLayer.GetResource(resourceCell.Cell).Density + 1;

            resourceLayer.ClearResources(resourceCell.Cell);
            resourceLayer.AddResource(resourceCell.NewResourceType, resourceCell.Cell, density);
            cellResources.Add(resourceCell);

            var cellText = cellResources.Count != 1 ? "cells" : "cell";

            Text = "Added {0} {1} of {2}".F(cellResources.Count, cellText, resourceType);
        }