using System; using UILib; using UnityEngine; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class XSweepBehaviour : DlgBehaviourBase { public IXUIButton m_Close = null; public IXUIProgress m_Exp = null; public IXUILabel m_ExpText = null; public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); public IXUIScrollView m_ScrollView = null; public XUIPool m_DropPool = new XUIPool(XSingleton.singleton.m_uiTool); public IXUILabel m_SweepTip; public Transform m_SealTip; public BoxCollider m_dragBox; private void Awake() { this.m_dragBox = base.transform.Find("Bg/DragBox").GetComponent(); this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); this.m_Exp = (base.transform.Find("Bg/ExpBar").GetComponent("XUIProgress") as IXUIProgress); this.m_ExpText = (base.transform.Find("Bg/ExpBar/ExpLabel").GetComponent("XUILabel") as IXUILabel); Transform transform = base.transform.Find("Bg/RewardDisplay/RewardTpl/Parent/ItemTpl"); this.m_DropPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 8u, false); transform = base.transform.Find("Bg/RewardDisplay/RewardTpl"); this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); this.m_ScrollView = (base.transform.Find("Bg/RewardDisplay").GetComponent("XUIScrollView") as IXUIScrollView); this.m_SweepTip = (base.transform.Find("Bg/RewardDisplay/Tip").GetComponent("XUILabel") as IXUILabel); this.m_SealTip = base.transform.Find("Bg/SealTip"); } } }