using System; using UILib; using UnityEngine; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class WeekEndNestBehaviour : DlgBehaviourBase { public IXUILabel m_timesLab; public IXUILabel m_tittleLab; public IXUILabel m_rulesLab; public IXUISprite m_getSpr; public IXUIButton m_closedBtn; public IXUIButton m_helpBtn; public IXUIButton m_getBtn; public IXUIButton m_gotoTeamBtn; public GameObject m_reddotGo; public Transform m_parentTra; public IXUITexture m_tex; public XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); private void Awake() { Transform transform = base.transform.Find("Bg"); this.m_tex = (transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); this.m_closedBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); this.m_helpBtn = (transform.Find("Help").GetComponent("XUIButton") as IXUIButton); this.m_reddotGo = transform.Find("Right/BtnStartSingle/RedPoint").gameObject; this.m_getBtn = (transform.Find("Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); this.m_gotoTeamBtn = (transform.Find("Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); this.m_getSpr = (transform.Find("Right/BtnStartSingle").GetComponent("XUISprite") as IXUISprite); this.m_tittleLab = (transform.Find("Left/CurrName").GetComponent("XUILabel") as IXUILabel); this.m_rulesLab = (transform.Find("Left/GameRule").GetComponent("XUILabel") as IXUILabel); this.m_timesLab = (transform.Find("Right/Times").GetComponent("XUILabel") as IXUILabel); Transform transform2 = transform.Find("WeekReward/ItemTpl"); this.m_parentTra = transform.Find("WeekReward/ListPanel"); this.m_itemPool.SetupPool(transform.Find("WeekReward").gameObject, transform2.gameObject, 3u, true); } } }