示例#1
0
 public void SetSelectedBuilding(Building b)
 {
     if (SelectedBuilding != null)
     {
         SelectedBuilding.Unselect();
         GameUI.BuildingInfo.gameObject.SetActive(false);
     }
     SelectedBuilding = b;
     if (SelectedBuilding != null)
     {
         GameUI.BuildingInfo.gameObject.SetActive(true);
         GameUI.BuildingInfo.SetSelection(this, SelectedBuilding);
         SelectedBuilding.Select();
     }
 }
示例#2
0
        public void AddTest(string customer, string building, string aggregate)
        {
            var c = new Customer(name: customer);

            SelectedCustomer = c;
            _customerRepository.AddCustomer(c);
            var b = new Building(name: building);

            SelectedBuilding = b;
            SelectedCustomer.AddBuilding(b);
            _buildingRepository.AddBuilding(b);
            var ag1 = new VentilationAggregate(orderNumber: aggregate);

            //var ag2 = new VentilationAggregate("666");
            SelectedBuilding.AddVentilationAggregate(ag1);
            //selectedBuilding.AddVentilationAggregate(ag2);
            _ventilationAggregateRepository.AddVentilationAggregate(ag1);
            //ventilationAggregateRepository.AddVentilationAggregate(ag2);
        }
 public void AcceptRentUpdate()
 {
     SelectedBuilding.UpdateRent(int.Parse(rentInput.text));
     Refresh();
 }
 public void AdjustDown()
 {
     rentInput.text = (int.Parse(rentInput.text) - 100).ToString();
     SelectedBuilding.UpdateRent(int.Parse(rentInput.text));
     Refresh();
 }