Ejemplo n.º 1
0
        /// <summary>
        /// 递归解冻子节点
        /// </summary>
        /// <param UIName="uiForm"></param>
        private void CircleThaw(IBaseUIForm uiForm, float time, params object[] paramValues)
        {
            List <int> clildrenID = uiForm.UIFormDepend.childrenNodeID;

            for (int i = clildrenID.Count - 1; i >= 0; i--)
            {
                IBaseUIForm ui = uiForm.UIFormDepend.childrenNode[childrenNodeID[i]].Node;
                CircleThaw(ui, time, paramValues);
                ui.ThawUI(time, paramValues);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 冻结所有子节点
 /// </summary>
 /// <param UIName="circle">是否递归冻结</param>
 internal void ThawAllClildren(bool circle = true, float time = 0, params object[] paramValues)
 {
     if (circle)
     {
         for (int i = childrenNodeID.Count - 1; i >= 0; i--)
         {
             int         id     = childrenNodeID[i];
             IBaseUIForm uiForm = childrenNode[id].Node;
             CircleThaw(uiForm, time, paramValues);
             uiForm.ThawUI(time, paramValues);
         }
     }
     else
     {
         for (int i = childrenNodeID.Count - 1; i >= 0; i--)
         {
             int         id     = childrenNodeID[i];
             IBaseUIForm uiForm = childrenNode[id].Node;
             uiForm.ThawUI(time, paramValues);
         }
     }
 }