summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs
blob: 861600a4e945512627a26696652304301a7121b7 (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
using System;
using UILib;
using UnityEngine;

namespace XMainClient.UI
{
	internal class ReceiveEnergyPanelModelView
	{
		public IXUILabel m_lbNum;

		public IXUISprite m_sprFinish;

		public IXUISprite m_EnerySpr;

		public GameObject m_ItemGo;

		public IXUISprite m_ItemIcon;

		public IXUILabel m_ItemNumLab;

		public void FindFrom(Transform t)
		{
			bool flag = null == t;
			if (!flag)
			{
				this.m_lbNum = (t.GetComponent("XUILabel") as IXUILabel);
				this.m_sprFinish = (t.Find("F").GetComponent("XUISprite") as IXUISprite);
				this.m_EnerySpr = (t.Find("Icon").GetComponent("XUISprite") as IXUISprite);
				Transform transform = t.Find("Item");
				bool flag2 = transform != null;
				if (flag2)
				{
					this.m_ItemGo = transform.gameObject;
					this.m_ItemNumLab = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel);
					this.m_ItemIcon = (transform.Find("Icon1").GetComponent("XUISprite") as IXUISprite);
				}
			}
		}
	}
}