EventDelegate.Execute
----------------------------------------------------------------------
[NGUI3.6.8]
for (int i = 0; i < list.Count; )
{
EventDelegate del = list[i];
if (del != null)
{
del.Execute();
if (i >= list.Count) break;
if (list[i] != del) continue;
if (del.oneShot)
{
list.RemoveAt(i);
continue;
}
}
++i;
}
----------------------------------------------------------------------
[Change]
foreach (var del in list.ToArray())
{
if (del != null)
{
del.Execute();
if (del.oneShot)
list.Remove(del);
}
}
----------------------------------------------------------------------