FairyGUI.GComponent.AdjustRadioGroupDepth C# (CSharp) Méthode

AdjustRadioGroupDepth() private méthode

private AdjustRadioGroupDepth ( GObject obj, FairyGUI.Controller c ) : void
obj GObject
c FairyGUI.Controller
Résultat void
        internal void AdjustRadioGroupDepth(GObject obj, Controller c)
        {
            int cnt = _children.Count;
            int i;
            GObject child;
            int myIndex = -1, maxIndex = -1;
            for (i = 0; i < cnt; i++)
            {
                child = _children[i];
                if (child == obj)
                {
                    myIndex = i;
                }
                else if ((child is GButton)
                    && ((GButton)child).relatedController == c)
                {
                    if (i > maxIndex)
                        maxIndex = i;
                }
            }
            if (myIndex < maxIndex)
                this.SwapChildrenAt(myIndex, maxIndex);
        }