summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs
blob: 95cffa1ac2475b50f9c01575f59f39a59cf60549 (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;

namespace XMainClient.UI
{
	public class XPlayerInfoChildBaseView
	{
		public IXUILabelSymbol lbName;

		public IXUILabel lbLevel;

		public IXUISprite sprHead;

		public virtual void FindFrom(Transform t)
		{
			Transform transform = t.Find("name");
			bool flag = null != transform;
			if (flag)
			{
				this.lbName = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			}
			transform = t.Find("level");
			bool flag2 = null != transform;
			if (flag2)
			{
				this.lbLevel = (transform.GetComponent("XUILabel") as IXUILabel);
			}
			transform = t.Find("head");
			bool flag3 = null != transform;
			if (flag3)
			{
				this.sprHead = (transform.GetComponent("XUISprite") as IXUISprite);
			}
		}
	}
}