summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs37
1 files changed, 37 insertions, 0 deletions
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<XGameUI>.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);
+ }
+ }
+}