Project_WL/Assets/Script/UI/Ingame/IngameBuffDebuffBase.cs

34 lines
829 B
C#
Raw Permalink Normal View History

2025-03-05 07:08:07 +00:00
using System.Collections.Generic;
public class IngameBuffDebuffBase : uScrollViewMgr
{
List<IngameBuffDebuffData> list_buffDebuffDatas = new List<IngameBuffDebuffData>();
public void AllOff()
{
CardBase_AllOff();
}
private void OnEnable()
{
AllOff();
}
public void Add_IngameBuffDebuff(string icon, float time)
{
bool add = false;
for (int i = 0; i < list_buffDebuffDatas.Count; i++)
{
if (list_buffDebuffDatas[i].s_Icon.Equals(icon))
{
add = true;
list_buffDebuffDatas[i].f_Time = time;
break;
}
}
if (!add) list_buffDebuffDatas.Add(new IngameBuffDebuffData { s_Icon = icon, f_Time = time });
Set_ScrollView(list_buffDebuffDatas);
}
}