Exemple #1
0
        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);
        }
Exemple #2
0
 public BuildingPowerPair(BuildingView building)
 {
     Building = building;
 }
Exemple #3
0
        private void OnBuilt(BuildingView building)
        {
            _powerText.text = _cityModel.TotalPower.ToString();

            _buildings.Add(new BuildingPowerPair(building));
        }