public void Show(ProductionBuildingData toShow)
        {
            this.ShowGeneralInfo(toShow);
            var workforce = Instantiate(this.m_resourceCostPrefab, this.m_costGrid.transform).GetComponent <ResourceCostUI>();

            workforce.Show(toShow.WorkforceConsumption);
            this.m_civilBuildingInfo.SetActive(false);
            this.m_productionInfo.SetActive(true);
            this.m_productionIcon.sprite = toShow.Icon;
            this.m_productionTime.text   = $"{toShow.SecondsToProduce}";
        }
Exemple #2
0
        public void Initialize()
        {
            IUserProfileModel userProfileModel = ServiceLocator.Instance.Get <IUserProfileModel>();

            m_productionBuildingData = userProfileModel.CurrentCityProgress.GetProductionBuildingData(userProfileModel.OpenedBuildingId);
        }
Exemple #3
0
 public void ShowBuildingToolTip(ProductionBuildingData toShow)
 {
     this.m_buildingTooltip.Show(toShow);
 }