diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs | 37 |
1 files changed, 37 insertions, 0 deletions
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);
+ }
+ }
+ }
+}
|