using vnxbqy.UI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using UnityEngine.UI; class PetHorseDevourBehaviour { PetHorseAwakingModel model { get { return PetHorseAwakingModel.Instance; } } PackModel packModel; SmoothMask smoothMask; ScrollItem scrollItem; Text txt_name; Text txt_exp; ItemBehaviour item; Button btn_devour; Text txt_devourLabel; int itemId; public void Bind(Transform parent, SmoothMask smoothMask) { packModel = ModelCenter.Instance.GetModelEx(); this.smoothMask = smoothMask; this.scrollItem = parent.GetComponentEx(); this.scrollItem.LuaRegister(Display, Dispose); this.txt_name = parent.FindComponentEx("Txt_Title"); this.txt_exp = parent.FindComponentEx("Txt_Exp"); this.item = parent.FindComponentEx("Item"); this.btn_devour = parent.FindComponentEx