public void CreateCell(PayCountResponse res)
    {
        List <RechargeData> Datalist = mDataMgr.GetShowDataList();

        Object prefab = PrefabLoader.loadFromPack("LS/pbLSFanbeiCell");

        if (prefab != null)
        {
            for (int i = 0; i < Datalist.Count; i++)
            {
                GameObject   obj    = Instantiate(prefab) as GameObject;
                RechargeData m_data = Datalist[i];
                if (m_data != null)
                {
                    obj.name = (i + 1).ToString();
                    RED.AddChild(obj, _Table.gameObject);
                    UIDragonRechargeCell mm = obj.GetComponent <UIDragonRechargeCell> ();
                    _RechargeCellList.Add(mm);
                    if (res != null && res.data != null && res.data.buyCounts != null)
                    {
                        if (res.data.buyCounts.Count == 0)
                        {
                            mm.OnShow(m_data);
                        }
                        else
                        {
                            for (int j = 0; j < res.data.buyCounts.Count; j++)
                            {
                                if (res.data.buyCounts[j] != null && res.data.buyCounts[j].Length == 2 && res.data.buyCounts[j][0] == Datalist[i].ID && res.data.buyCounts[j][1] != 0)
                                {
                                    mm.OnShow(m_data, res.data.buyCounts[j][1]);
                                    break;
                                }
                                if (j == res.data.buyCounts.Count - 1)
                                {
                                    mm.OnShow(m_data);
                                }
                            }
                        }
                    }
                    else
                    {
                        mm.OnShow(m_data);
                    }
                }
            }
        }
        _Table.Reposition();
    }
 public void SetCurPayCell(UIDragonRechargeCell cell)
 {
     m_curPayCell = cell;
 }