using System.Collections; using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.UI; using proto; namespace MoleMole { public class GachaResultPageContext : BasePageContext { private const string DROP_ITEM_ANIMATION_NAME = "DropItemScale10"; private List _itemList; private GachaType _type; private int _cost; private GachaDisplayInfo _displayInfo; private HashSet _rareItemList; private SequenceAnimationManager _animationManager; private List _dropList = new List(); public GachaResultPageContext(GachaDisplayInfo displayInfo, GachaType type, List itemList, List gachaItemList, int cost) { //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) config = new ContextPattern { contextName = "GachaResultPageContext", viewPrefabPath = "UI/Menus/Page/Gacha/GachaResultPage", cacheType = ViewCacheType.AlwaysCached }; _type = type; _itemList = itemList; _rareItemList = new HashSet(); foreach (GachaItem gachaItem in gachaItemList) { if (gachaItem.is_rare_dropSpecified && gachaItem.is_rare_drop) { _rareItemList.Add((int)gachaItem.item_id); } } _cost = cost; _displayInfo = displayInfo; } public override bool OnPacket(NetPacketV1 pkt) { ushort cmdId = pkt.getCmdId(); if (cmdId == 63) { return OnGetGachaDisplayRsp(pkt.getData()); } return false; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("BottomPanel/OKBtn").GetComponent