protected override void OnInit() { this.mPool.Collect <ShopItemEquipExp>(); this.mList.Clear(); this.Text_Title.text = GameLogic.Hold.Language.GetLanguageByTID("shopui_equipexp_title", Array.Empty <object>()); this.oncestring = GameLogic.Hold.Language.GetLanguageByTID("shopui_equipexp_buy_once", Array.Empty <object>()); this.timestring = GameLogic.Hold.Language.GetLanguageByTID("battle_level_nexttime", Array.Empty <object>()); this.lasttime = GameLogic.Random(500, 0x1388); this.m_flasttime = this.lasttime; this.Update(); int num = 3; float num2 = (num - 1) * 235f; for (int i = 0; i < num; i++) { ShopItemEquipExp item = this.mPool.DeQueue <ShopItemEquipExp>(); item.gameObject.SetParentNormal(this.goldparent); RectTransform transform = item.transform as RectTransform; transform.anchoredPosition = new Vector2((-num2 / 2f) + (235f * i), 0f); item.Init(i); item.OnClickButton = new Action <int, ShopItemEquipExp>(this.OnOpenWindowSure); this.mList.Add(item); } }
private void OnOpenWindowSure(int index, ShopItemEquipExp item) { }
private void OnClickEquipExp(int index, ShopItemEquipExp item) { }