Files
MinFt/Client/Assets/Scripts/UI/Shop/GiftPopupPanel_6.cs
2026-04-27 12:07:32 +08:00

37 lines
962 B
C#

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<PlayerShopData>().GetShopPackBuyCount(curTriggerPackState.lastID);
List<int> 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);
}
}