34 lines
829 B
C#
34 lines
829 B
C#
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);
|
|
}
|
|
} |