37 lines
925 B
C#
37 lines
925 B
C#
using cfg.FunctionLockCfg;
|
|
using Gameplay.PopUp;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Gameplay.FunctionLock
|
|
{
|
|
/// <summary>
|
|
/// 功能解锁UI弹窗
|
|
/// </summary>
|
|
public sealed class FunctionUnlockPopUp : IPopUp
|
|
{
|
|
private readonly List<DataFunctionLock> listCfg;
|
|
|
|
public E_PopUpTrigger TriggerType => E_PopUpTrigger.EnterFightSettleUI;
|
|
public int Priority => 1;
|
|
public string UIName => UINameConst.UI_FunctionLock;
|
|
public bool IsSameTimePopUp => true;
|
|
|
|
public FunctionUnlockPopUp()
|
|
{
|
|
listCfg = new();
|
|
}
|
|
|
|
public void AddFunctionLockCfg(DataFunctionLock cfg)
|
|
{
|
|
listCfg.Add(cfg);
|
|
}
|
|
|
|
public async void PopUp()
|
|
{
|
|
await UI_FunctionLockController.Open(listCfg.ToArray());
|
|
listCfg.Clear();
|
|
}
|
|
}
|
|
} |