public static void Init() { if (m_listEffect.Count == 0) { m_dicIDEffectData.Clear(); return; } for (int index = m_listEffect.Count - 1; index >= 0; index--) { EffectData data = m_listEffect[index]; if (data.IsNullTable()) { m_listEffect.RemoveAt(index); } m_dicIDEffectData.Add(data.id, data); } }