示例#1
0
 public void UpdateCardDetail(int index)
 {
     if (m_gridList.ContainsKey(index))
     {
         UICardItem item = m_gridList[index];
         if (item.IsHaveCardDetail())
         {
             //更新卡牌详情
             CardBag.Singleton.m_curOptinIndex = index;
             CardBag.Singleton.m_curOptinGuid  = item.m_param.m_guid;
             CardBag.Singleton.OnShowCardDetail();
         }
     }
 }
示例#2
0
    bool IsHaveCardDetail(int index)
    {
        if (!m_gridList.ContainsKey(index))
        {
            return(false);
        }
        UICardItem item = m_gridList[index];

        if (null == item)
        {
            return(false);
        }
        return(item.IsHaveCardDetail());
    }