From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/XPlayerInfoChildBaseView.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs new file mode 100644 index 00000000..95cffa1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs @@ -0,0 +1,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); + } + } + } +} -- cgit v1.1-26-g67d0