using asap.core; using GameCore; using System.Collections.Generic; using UnityEngine; public class GiftPopupPanelEnergyEvent { public bool isClose; } public class GiftPopupPanel_6 : GiftPopupPanel_Energy { protected override int Type => 1; protected override void OnClickClose() { base.OnClickClose(); UIManager.Instance.DestroyUI(UITypes.GiftPopupPanel_6); } protected override void SetPack() { int vipLevel = curTriggerPackState.vipLevel; int buyCount = GContext.container.Resolve().GetShopPackBuyCount(curTriggerPackState.lastID); List VIPPackList = packManager.VIPPackList[vipLevel]; if (buyCount > VIPPackList.Count) { buyCount = VIPPackList.Count; } else if (buyCount <= 0) { buyCount = 1; } int id = VIPPackList[buyCount - 1]; pack = _tables.TbPack.GetOrDefault(id); } }