public override void onShowed() { InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR); GRMap.GAME_CAMERA.SetActive(false); this.onTab(0); a3_ranking.isshow = this; this.tip1.SetActive(false); BaseProxy <a3_rankingProxy> .getInstance().getTime(); this.isOpen(); }
public override void init() { a3_ranking.instan = this; this.rank_tabs = new GameObject[5]; this.rank_tabs[0] = base.transform.FindChild("rank_tab1").gameObject; this.rank_tabs[1] = base.transform.FindChild("rank_tab2").gameObject; this.rank_tabs[2] = base.transform.FindChild("rank_tab3").gameObject; this.rank_tabs[3] = base.transform.FindChild("rank_tab4").gameObject; this.rank_tabs[4] = base.transform.FindChild("rank_tab5").gameObject; this.zhanliCon = this.rank_tabs[0].transform.FindChild("panel/scroll_rect/contain"); this.lvlCon = this.rank_tabs[1].transform.FindChild("panel/scroll_rect/contain"); this.chiBangCon = this.rank_tabs[2].transform.FindChild("panel/scroll_rect/contain"); this.junTuanCon = this.rank_tabs[3].transform.FindChild("panel/scroll_rect/contain"); this.summonCon = this.rank_tabs[4].transform.FindChild("panel/scroll_rect/contain"); this.tip1 = base.transform.FindChild("tip").gameObject; new BaseButton(this.tip1.transform.FindChild("close"), 1, 1).onClick = delegate(GameObject go) { this.tip1.SetActive(false); }; this.time_text = base.transform.FindChild("time").GetComponent <Text>(); this.isthis = base.transform.FindChild("this").gameObject; for (int i = 0; i < base.transform.FindChild("panelTab2/con").childCount; i++) { this.tab.Add(base.transform.FindChild("panelTab2/con").GetChild(i).gameObject); } for (int j = 0; j < this.tab.Count; j++) { int tag = j; new BaseButton(this.tab[j].transform, 1, 1).onClick = delegate(GameObject go) { this.onTab(tag); }; } new BaseButton(base.transform.FindChild("btn_close"), 1, 1).onClick = new Action <GameObject>(this.onClose); this.setTip_1_btn(); }
public override void onClosed() { InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL); GRMap.GAME_CAMERA.SetActive(true); a3_ranking.isshow = null; }