예제 #1
0
 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();
 }
예제 #2
0
    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();
        }
    }