public void OnClickBelleItem(GameObject item)
    {
        m_curSelectBelleItem = item.GetComponent <BelleItemGetShowItem>();
        if (null == m_curSelectBelleItem)
        {
            return;
        }
        int nWayId;

        if (!int.TryParse(m_curSelectBelleItem.gameObject.name, out nWayId))
        {
            return;
        }

        Tab_BelleGetItemWay belleGetItemWayTab = TableManager.GetBelleGetItemWayByID(nWayId, 0);

        if (null == belleGetItemWayTab)
        {
            return;
        }

        switch (belleGetItemWayTab.WayType)
        {
        case 1:
            if (UIPathData.m_DicUIName.ContainsKey(belleGetItemWayTab.WayValue))
            {
                UIManager.CloseUI(UIInfo.Belle);
                UIManager.ShowUI(UIPathData.m_DicUIName[belleGetItemWayTab.WayValue]);
            }
            break;

        case 2:
            MessageBoxLogic.OpenOKBox(StrDictionary.GetClientDictionaryString("#{" + belleGetItemWayTab.WayValue + "}"));
            break;
        }
    }
    private void FillScrollViewList(GameObject item)
    {
        if (m_belleGetItemList != null)
        {
            m_belleGetItemList.Clear();
        }
        else
        {
            return;
        }
        Utils.CleanGrid(m_belleGrid.gameObject);
        FillBelleItemList();

        for (int i = 0, cout = m_belleGetItemList.Count; i < cout; i++)
        {
            Tab_BelleGetItemWay belleGetItemWayTab = m_belleGetItemList[i];
            if (belleGetItemWayTab != null)
            {
                GameObject belleGetItemObj = GameObject.Instantiate(item) as GameObject;
                if (null == belleGetItemObj)
                {
                    continue;
                }
                belleGetItemObj.transform.parent        = m_belleGrid.transform;
                belleGetItemObj.transform.localPosition = Vector3.zero;
                belleGetItemObj.transform.localScale    = Vector3.one;

                BelleItemGetShowItem belleItemLogic = belleGetItemObj.GetComponent <BelleItemGetShowItem>();
                if (belleItemLogic != null)
                {
                    belleItemLogic.SetData(this, belleGetItemWayTab);
                }
            }
        }
        m_belleGrid.Reposition();
    }
 void Awake()
 {
     m_instance = this;
 }