public static AbnormalData GetData(PEAbnormalType type) { if (g_DataDic.ContainsKey(type)) { return(g_DataDic[type]); } Debug.LogError("Can't find abnormaltype:" + type.ToString()); return(null); }
void InitData(PEAbnormalType abnormalType) { m_Data = AbnormalData.GetData(abnormalType); if (null == m_Data) { Debug.LogError("Can't find AbnormalData ID:" + abnormalType.ToString()); return; } InitTriggers(); InitHits(); InitEffects(); InitRemoveTriggers(); InitRemoveHits(); InitRemoveEffects(); }