// Use this for initialization void Start () { FurnishListGUI flg = HospitalPrefabs.ScriptsObject.GetComponent<FurnishListGUI>(); furnishInfo = flg.GetFurnishInfo(ID); cost =(UILabel) transform.Find("Cost").GetComponent<UILabel>(); cost.text = furnishInfo.cost.ToString(); title = (UILabel) transform.Find("Title").GetComponent<UILabel>(); title.text = furnishInfo.title; }
// Use this for initialization void Start() { FurnishListGUI flg = HospitalPrefabs.ScriptsObject.GetComponent <FurnishListGUI>(); furnishInfo = flg.GetFurnishInfo(ID); cost = (UILabel)transform.Find("Cost").GetComponent <UILabel>(); cost.text = furnishInfo.cost.ToString(); title = (UILabel)transform.Find("Title").GetComponent <UILabel>(); title.text = furnishInfo.title; }