/// <summary>
 /// 弃用
 /// </summary>
 void Check_NewPlayerGuide()
 {
     if (BelleController.Instance() && BelleController.Instance().NewPlayerGuide_Step == 1)
     {
         //10号魂器女王蜂,作为新手引导的ID。如有修改,要改这里
         Transform itemTrans = m_belleGrid.transform.FindChild("10");
         if (itemTrans)
         {
             BelleShowItem BelleItem = itemTrans.GetComponent <BelleShowItem>();
             if (BelleItem)
             {
                 BelleItem.NewPlayerGuide(1);
             }
         }
     }
 }
    public void UpdateCloseRedTipState()
    {
//         if (m_curSelectBelle != null)
//         {
//             m_curSelectBelle.UpdateCloseRedTip();
//         }

        if (m_belleGrid != null)
        {
            for (int i = 0; i < m_belleGrid.gameObject.transform.childCount; i++)
            {
                Transform     itemTrans      = m_belleGrid.gameObject.transform.GetChild(i);
                BelleShowItem belleItemLogic = itemTrans.gameObject.GetComponent <BelleShowItem>();

                if (belleItemLogic != null)
                {
                    belleItemLogic.UpdateCloseRedTip();
                }
            }
        }
    }
    public void OnClickBelleItem(GameObject item)
    {
        if (m_curSelectBelle != null)
        {
            m_curSelectBelle.SetClickHighLight(false);
        }
        m_curSelectBelle = item.GetComponent <BelleShowItem>();
        if (null == m_curSelectBelle)
        {
            return;
        }
        m_curSelectBelle.SetClickHighLight(true);

        int belleId;

        if (!int.TryParse(m_curSelectBelle.gameObject.name, out belleId))
        {
            return;
        }
        ShowBelleInfoWindow(TableManager.GetBelleByID(belleId, 0), BelleData.OwnedBelleMap.ContainsKey(belleId));
    }
    /// <summary>
    /// 更新后的回调
    /// </summary>
    private void FillScrollViewList(GameObject item, bool isUpdate)
    {
        m_belleList.Clear();
        int nOwnBelleIndex = 0;

        foreach (int bellId in TableManager.GetBelle().Keys)
        {
            if (BelleData.OwnedBelleMap.ContainsKey(bellId))
            {
                m_belleList.Insert(nOwnBelleIndex++, bellId);
            }
            else
            {
                m_belleList.Add(bellId);
            }
        }

        for (int i = 0, count = m_belleList.Count; i < count; i++)
        {
            Tab_Belle curBelle = TableManager.GetBelleByID(m_belleList[i], 0);
            if (curBelle != null)
            {
                GameObject belleItemObj = GameObject.Instantiate(item) as GameObject;
                if (null == belleItemObj)
                {
                    continue;
                }

                belleItemObj.transform.parent        = m_belleGrid.transform;
                belleItemObj.transform.localPosition = Vector3.zero;
                belleItemObj.transform.localScale    = Vector3.one;

                BelleShowItem belleItemLogic = belleItemObj.GetComponent <BelleShowItem>();
                if (belleItemLogic != null)
                {
                    belleItemLogic.SetData(this, m_belleList[i], curBelle, BelleData.OwnedBelleMap.ContainsKey(m_belleList[i]));
                }
            }
        }
        m_belleGrid.Reposition();

        if (isUpdate)
        {
            Transform curSelectBelle = m_belleGrid.transform.FindChild(m_belleList.Count > 0 ? m_belleList[0].ToString() : "");
            if (null != curSelectBelle)
            {
                m_curSelectBelle = curSelectBelle.GetComponent <BelleShowItem>();
                if (m_curSelectBelle != null)
                {
                    m_curSelectBelle.SetClickHighLight(true);
                }
            }
            int belleId;
            if (null == m_curSelectBelle || !int.TryParse(m_curSelectBelle.gameObject.name, out belleId))
            {
                return;
            }
            if (0 < m_belleList.Count)
            {
                ShowBelleInfoWindow(TableManager.GetBelleByID(belleId, 0), BelleData.OwnedBelleMap.ContainsKey(belleId));
            }
        }
    }