public void InitBtn(int pageId, ButtonCustom.VoidDelegateObj clickCallback) { BMuLuFenYe bMuLuFenYe = DataReader <BMuLuFenYe> .Get(pageId); if (bMuLuFenYe != null) { this.m_BtnName.set_text(GameDataUtils.GetChineseContent(bMuLuFenYe.name, false)); } this.m_BtnPage.onClickCustom = clickCallback; this.pageId = pageId; }
private void OnClickPageBtn(GameObject go) { BossBookPageBtn component = go.get_transform().get_parent().GetComponent <BossBookPageBtn>(); BMuLuFenYe bMuLuFenYe = DataReader <BMuLuFenYe> .Get(component.pageId); if (bMuLuFenYe != null && bMuLuFenYe.level > EntityWorld.Instance.EntSelf.Lv) { UIManagerControl.Instance.ShowToastText(string.Format(GameDataUtils.GetChineseContent(606121, false), bMuLuFenYe.level)); return; } this.SelPage(component.pageId); }