summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs
blob: 88bd0400c7a6e3accfecff48cbc5116f096589d2 (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
38
39
40
41
42
43
44
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XSweepBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close = null;

		public IXUIProgress m_Exp = null;

		public IXUILabel m_ExpText = null;

		public XUIPool m_RewardPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public IXUIScrollView m_ScrollView = null;

		public XUIPool m_DropPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public IXUILabel m_SweepTip;

		public Transform m_SealTip;

		public BoxCollider m_dragBox;

		private void Awake()
		{
			this.m_dragBox = base.transform.Find("Bg/DragBox").GetComponent<BoxCollider>();
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_Exp = (base.transform.Find("Bg/ExpBar").GetComponent("XUIProgress") as IXUIProgress);
			this.m_ExpText = (base.transform.Find("Bg/ExpBar/ExpLabel").GetComponent("XUILabel") as IXUILabel);
			Transform transform = base.transform.Find("Bg/RewardDisplay/RewardTpl/Parent/ItemTpl");
			this.m_DropPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 8u, false);
			transform = base.transform.Find("Bg/RewardDisplay/RewardTpl");
			this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false);
			this.m_ScrollView = (base.transform.Find("Bg/RewardDisplay").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_SweepTip = (base.transform.Find("Bg/RewardDisplay/Tip").GetComponent("XUILabel") as IXUILabel);
			this.m_SealTip = base.transform.Find("Bg/SealTip");
		}
	}
}