38 lines
819 B
C#
38 lines
819 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
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 解锁列表
|
||
|
|
/// </summary>
|
||
|
|
private readonly List<DataFunctionLock> listCfg;
|
||
|
|
|
||
|
|
public E_PopUpTrigger TriggerType => E_PopUpTrigger.EnterFightSettleUI;
|
||
|
|
public int Priority => 0;
|
||
|
|
|
||
|
|
public FunctionUnlockPopUp()
|
||
|
|
{
|
||
|
|
listCfg = new();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void AddFunctionUnlockCfg(DataFunctionLock cfg)
|
||
|
|
{
|
||
|
|
listCfg.Add(cfg);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void Execute()
|
||
|
|
{
|
||
|
|
|
||
|
|
listCfg.Clear();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|