private void OnBuilt(BuildingView building, int x, int y) { for (int i = x; i < x + building.Config.Width; i++) { for (int j = y; j < y + building.Config.Length; j++) { _cells[i, j].SetColorMode(true); } } _buildings.Add(building); Built?.Invoke(building); }
public BuildingPowerPair(BuildingView building) { Building = building; }
private void OnBuilt(BuildingView building) { _powerText.text = _cityModel.TotalPower.ToString(); _buildings.Add(new BuildingPowerPair(building)); }