summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs
blob: f6c7d3573fb02d01155bdbebfec5efbde069e216 (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
45
46
47
48
49
50
51
52
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<XGameUI>.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);
		}
	}
}