using System; using UILib; using UnityEngine; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class FirstPassRewardBehaviour : DlgBehaviourBase { public IXUIButton m_Close; public GameObject m_itemParentGo; public XUIPool m_ItemPool1 = new XUIPool(XSingleton.singleton.m_uiTool); public XUIPool m_ItemPool2 = new XUIPool(XSingleton.singleton.m_uiTool); private void Awake() { this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); this.m_itemParentGo = base.transform.Find("Panel/List").gameObject; Transform transform = this.m_itemParentGo.transform.Find("Tpl"); this.m_ItemPool1.SetupPool(this.m_itemParentGo, transform.gameObject, 5u, false); this.m_ItemPool2.SetupPool(transform.gameObject, this.m_itemParentGo.transform.Find("Item").gameObject, 4u, false); } } }