summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.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/AnicientBoxBahaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs
new file mode 100644
index 00000000..e35a7a57
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs
@@ -0,0 +1,37 @@
+using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class AnicientBoxBahaviour : DlgBehaviourBase
+ {
+ public IXUILabel m_title;
+
+ public IXUILabel m_point;
+
+ public GameObject itemTpl;
+
+ public IXUIButton m_btnClaim;
+
+ public XUIPool m_rwdpool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUISprite m_black;
+
+ public IXUISprite m_sprRed;
+
+ private void Awake()
+ {
+ this.itemTpl = base.transform.Find("bg/ItemList/ItemTpl").gameObject;
+ this.itemTpl.SetActive(false);
+ this.m_title = (base.transform.Find("bg/title").GetComponent("XUILabel") as IXUILabel);
+ this.m_point = (base.transform.Find("bg/tips").GetComponent("XUILabel") as IXUILabel);
+ this.m_btnClaim = (base.transform.Find("bg/Bt").GetComponent("XUIButton") as IXUIButton);
+ this.m_rwdpool.SetupPool(this.itemTpl.transform.parent.gameObject, this.itemTpl, 2u, false);
+ this.m_black = (base.transform.Find("backclick").GetComponent("XUISprite") as IXUISprite);
+ this.m_sprRed = (base.transform.Find("bg/Bt/redpoint").GetComponent("XUISprite") as IXUISprite);
+ }
+ }
+}