summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs37
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);
+ }
+ }
+ }
+}