public static void DestroyALL() { if (Movie.GetSingleton <FloatFontMovie>() == null) { return; } foreach (FloatFontNode ff in ActiviteList) { Destroy(ff); } foreach (FloatFontNode ff in UnActiviteList) { Destroy(ff); } WillRemoveActiviteList.Clear(); ActiviteList.Clear(); UnActiviteList.Clear(); }
public static void Update() { if (!bInit) { return; } if (WillRemoveActiviteList.Count > 0) { //先移除上一帧需要移除的对象 foreach (FloatFontNode ff in WillRemoveActiviteList) { ActiviteList.Remove(ff); //Destroy(ff); } WillRemoveActiviteList.Clear(); } foreach (FloatFontNode ff in ActiviteList) { ff.OnUpdate(); } }