blob: 8682bf1983a3d18a91b10754b545d37d24a9254e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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");
}
}
}
}
|