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/CarnivalBehavior.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs (limited to 'Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs') diff --git a/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs new file mode 100644 index 00000000..8682bf19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class CarnivalBehavior : DlgBehaviourBase + { + public IXUILabel _endLabel; + + public GameObject _contentPanel; + + public GameObject _rwdPanel; + + public IXUIButton _close; + + public IXUICheckBox[] _tabs = new IXUICheckBox[7]; + + public GameObject[] _redpoint = new GameObject[7]; + + public Transform[] _lock = new Transform[7]; + + private void Awake() + { + this._endLabel = (base.transform.Find("Bg/Deadline").GetComponent("XUILabel") as IXUILabel); + this._contentPanel = base.transform.Find("Bg/contentFrame").gameObject; + this._rwdPanel = base.transform.Find("Bg/rwdFrame").gameObject; + this._close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 7; i++) + { + this._tabs[i] = (base.transform.Find("Bg/Tabs/TabTpl" + i + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this._redpoint[i] = this._tabs[i].gameObject.transform.Find("RedPoint").gameObject; + this._lock[i] = this._tabs[i].gameObject.transform.Find("lock"); + } + } + } +} -- cgit v1.1-26-g67d0