summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs
blob: 8be2fb54e655941c3b656eb826d714fa9ee52b9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
		}
	}
}