static public void ClearAll ()
{
bool playing = Application.isPlaying;
for (int i = mActiveList.size; i > 0; )
{
UIDrawCall dc = mActiveList[--i];
if (dc)
{
if (playing) NGUITools.SetActive(dc.gameObject, false);
else NGUITools.DestroyImmediate(dc.gameObject);
}
}
mActiveList.Clear();
}