public void SetCardInfo(CardInfo effectInfo) { string sEffectName = effectInfo.cardName; if (m_dicCardInfo.ContainsKey(sEffectName)) { m_dicCardInfo[sEffectName] = effectInfo; if (m_tabFile != null) { TabData tabData = effectInfo.SaveAsTabData(); m_tabFile.SetData(tabData.DataTable, sEffectName); } } else { m_dicCardInfo.Add(sEffectName, effectInfo); if (m_tabFile != null) { TabData tabData = effectInfo.SaveAsTabData(); m_tabFile.AddData(tabData.DataTable); } } }