public void SetTechnologyEntry(TechnologyEntry technologyEntry) { techEntry = technologyEntry; techNameText.text = techEntry.GetTechnology().GetName(); techDescriptionText.text = techEntry.GetTechnology().GetDescription(); pointsProgressText.text = techEntry.GetResearchPoints().ToString() + "/" + techEntry.GetTechnology().baseCost.ToString(); }
void SetActiveResearchSociety(TechnologyEntry techEntry) { if (techEntry != null) { activeResearchSocietyGroup.SetActive(true); selectResearchSocietyButton.gameObject.SetActive(false); activeTechnologySocietyNameText.text = techEntry.GetTechnology().GetName(); activeTechnologySocietyDescriptionText.text = techEntry.GetTechnology().GetDescription(); activeTechnologySocietyProgressPointsText.text = techEntry.GetResearchPoints().ToString() + "/" + techEntry.GetResearchCost(1.0f).ToString(); activeTechnologySocietyProgressBar.SetPercentage(techEntry.GetResearchPercentCompleted(1.0f)); } }
void SetActiveResearchPhysics(TechnologyEntry techEntry) { if (techEntry != null) { activeResearchPhysicsGroup.SetActive(true); selectResearchPhysicsButton.gameObject.SetActive(false); //scientistNamePhysics; //researchBonusPhysicsText; //activeTechnologyPhysicsBackground; activeTechnologyPhysicsNameText.text = techEntry.GetTechnology().GetName(); activeTechnologyPhysicsDescriptionText.text = techEntry.GetTechnology().GetDescription(); activeTechnologyPhysicsProgressPointsText.text = techEntry.GetResearchPoints().ToString() + "/" + techEntry.GetResearchCost(1.0f).ToString(); //activeTechnologyPhysicsImage; //activeTechnologyPhysicsFieldIcon; activeTechnologyPhysicsProgressBar.SetPercentage(techEntry.GetResearchPercentCompleted(1.0f)); } }