public void Init(BackpackUI backpackUI) { this.backpackUI = backpackUI; item_name = transform.Find("name").GetComponent <Text>(); item_attr = transform.Find("attr").GetComponent <Text>(); item_desc = transform.Find("desc").GetComponent <Text>(); item_type = transform.Find("type").GetComponent <Text>(); item_img = transform.Find("img").GetComponent <Image>(); buttons_group = transform.Find("buttons"); print("ui panel init done"); }