From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/GiftboxBehaviour.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs new file mode 100644 index 00000000..afd65cbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GiftboxBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_checkbox1; + + public IXUICheckBox m_checkbox2; + + public IXUIButton m_btnClose; + + public IXUIWrapContent m_wrap; + + public IXUIScrollView m_scroll; + + public GameObject m_tip0; + + public GameObject m_tip1; + + private void Awake() + { + this.m_checkbox1 = (base.transform.Find("item1/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_checkbox2 = (base.transform.Find("item2/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_tip0 = base.transform.Find("Bg/Tip2").gameObject; + this.m_tip1 = base.transform.Find("Bg/Tip1").gameObject; + this.m_btnClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_wrap = (base.transform.Find("scrollview/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_scroll = (base.transform.Find("scrollview").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} -- cgit v1.1-26-g67d0