public enum eLogType
{
Normal,
Warning,
Error,
Good,
Strange
}
private static Dictionary<eLogType,List<Item>> mLogByType = new Dictionary<eLogType,List<Item>>();
....
foreach(eLogType p in eLogType.GetValues(typeof(eLogType)))
mLogByType[p] = new List<Item>();
}
foreach(string name in eLogType.GetNames(typeof(eLogType)))
{
Debug.Log(name);
}
//Nombre d'elements
int len = eLogType.GetValues(typeof(eLogType)).Length;
...