From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XOnlineRewardBehaviour.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs new file mode 100644 index 00000000..8be2fb54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOnlineRewardBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_GetReward; + + public IXUILabel m_TimeTip; + + public IXUILabel m_LeftTime; + + public IXUILabel m_GetRewardLabel; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITweenTool m_BgTween; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_GetReward = (base.transform.Find("Bg/GetReward").GetComponent("XUIButton") as IXUIButton); + this.m_TimeTip = (base.transform.Find("Bg/TimeTip").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = (base.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_GetRewardLabel = (base.transform.Find("Bg/GetReward/Text").GetComponent("XUILabel") as IXUILabel); + this.m_BgTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + } + } +} -- cgit v1.1-26-g67d0