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}"; }
public void Initialize() { IUserProfileModel userProfileModel = ServiceLocator.Instance.Get <IUserProfileModel>(); m_productionBuildingData = userProfileModel.CurrentCityProgress.GetProductionBuildingData(userProfileModel.OpenedBuildingId); }
public void ShowBuildingToolTip(ProductionBuildingData toShow) { this.m_buildingTooltip.Show(toShow); }