Ejemplo n.º 1
0
	// 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;
	}
Ejemplo n.º 2
0
    // 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;
    }