public void SetData(GuidNewMainIconData iconData, GuidNewMainIconUILogic parent)
 {
     SetMainIconInfo(iconData, parent);
     if (iconData.IsUnLock)
     {
         m_icon.Visible = false;
         Debug.Log("unlock ==== ");
     }
 }
 public void SetData(GuidNewMainIconData iconData, GameToggleButton banner, GuidNewMainIconUILogic parent)
 {
     SetMainIconInfo(iconData, parent);
     this.m_banner = banner;
     //this.m_parent = parent;
     //m_icon.Sprite = iconData.IconName;
     if (iconData.IconType != 0)
     {
         return;
     }
     InitBanner(iconData.IsUnLock);
     //this.m_iconData = iconData;
     if (iconData.IsUnLock)
     {
         banner.Widget.SetSiblingIndex(iconData.IconIndex);
         m_icon.Visible = false;
         Debug.Log("unlock ==== ");
     }
     else
     {
         if (iconData.IconIndex <= 3)
         {
             banner.Widget.SetSiblingIndex(iconData.IconIndex);
             //banner.Widget.SetAsFirstSibling();
         }
         else
         {
             banner.Widget.SetAsLastSibling();
         }
     }
 }
 private void SetMainIconInfo(GuidNewMainIconData iconData, GuidNewMainIconUILogic parent)
 {
     this.m_parent   = parent;
     m_icon.Sprite   = iconData.IconName;
     this.m_iconData = iconData;
 }