Exemple #1
0
 /// <summary>
 /// 禁用飘字结点
 /// </summary>
 /// <param name="ins"></param>
 public static void DisableFloatNode(FloatFontNode ins)
 {
     WillRemoveActiviteList.AddLast(ins);
     UnActiviteList.AddLast(ins);
     ins.SetEnable(false);
     ins.OnDisabled();
 }
Exemple #2
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();
 }
Exemple #3
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();
        }
    }