void SetActiveResearchEngineering(TechnologyEntry techEntry) { if (techEntry != null) { activeResearchEngineeringGroup.SetActive(true); selectResearchEngineeringButton.gameObject.SetActive(false); activeTechnologyEngineeringNameText.text = techEntry.GetTechnology().GetName(); activeTechnologyEngineeringDescriptionText.text = techEntry.GetTechnology().GetDescription(); activeTechnologyEngineeringProgressPointsText.text = techEntry.GetResearchPoints().ToString() + "/" + techEntry.GetResearchCost(1.0f).ToString(); activeTechnologyEngineeringProgressBar.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)); } }