public DescriptionPanel GetDescriptionPanel(ResearchHolder holder) { if (dPanels[2].gameObject.activeInHierarchy) { return(dPanels[2]); } else { return(null); } }
public void SetPanel(Talent talent, ResearchHolder holder) { if (talent == null) { return; } ChangeView(false); SetMainInformation(talent); // show resource & time costs, images resourceImg.gameObject.SetActive(true); timeImg.gameObject.SetActive(true); timeToResearch.text = talent.timeToResearch.ToString(); cost.text = talent.description.buyPrice.ToString(); }