From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/WeekEndNestBehaviour.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs new file mode 100644 index 00000000..f6c7d357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs @@ -0,0 +1,53 @@ +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); + } + } +} -- cgit v1.1-26-g67d0