diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs new file mode 100644 index 00000000..861600a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs @@ -0,0 +1,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);
+ }
+ }
+ }
+ }
+}
|