summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs
blob: 55551ede188ab1eb86c360f9be684311b5a0ba78 (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
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class NextLevelSealBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close;

		public IXUILabel m_NextSealLabel;

		public IXUITexture m_NextSealTexL;

		public IXUITexture m_NextSealTexR;

		public IXUITexture m_NextSealTexM;

		public Transform m_NewFunction;

		public IXUISprite m_NewFunctionBg;

		public int m_NewFunctionBgWidth;

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

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_NextSealLabel = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel);
			this.m_NextSealTexL = (base.transform.Find("Bg/TexL").GetComponent("XUITexture") as IXUITexture);
			this.m_NextSealTexR = (base.transform.Find("Bg/TexR").GetComponent("XUITexture") as IXUITexture);
			this.m_NextSealTexM = (base.transform.Find("Bg/TexM").GetComponent("XUITexture") as IXUITexture);
			this.m_NewFunction = base.transform.Find("Bg/NewFunction");
			this.m_NewFunctionBg = (base.transform.Find("Bg/NewFunction/Bg").GetComponent("XUISprite") as IXUISprite);
			this.m_NewFunctionBgWidth = this.m_NewFunctionBg.spriteWidth;
			Transform transform = base.transform.Find("Bg/NewFunction/NewFunction/FunctionTpl");
			this.m_NewFunctionPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false);
		}
	}
}