public int GetSpriteGroupIndex(UISpriteGroupModel groupModel)
 {
     int index = Children.IndexOf(groupModel);
     if (index == -1)
         return -1;
     if (HasSpecialSprite)
     {
         index--;
     }
     return index;
 }
 public void RemoveSpriteGroup(UISpriteGroupModel groupModel)
 {
     int index = GetSpriteGroupIndex(groupModel);
     if (index == -1)
         return;
     spriteCollection.ChildSpriteGroups.RemoveAt(index);
     if (HasSpecialSprite)
     {
         index++;
     }
     Children.RemoveAt(index);
     if (index <= spriteCollection.DefaultSpriteIndex)
         spriteCollection.DefaultSpriteIndex--;
     subcomponent.PauModel.ForceRender();
 }