public static void LoadTypes() { _types = new List <CharacterType>(); _typeNameToType = new Dictionary <string, CharacterType>(); var tydNode = StreamingAssetsDatabase.GetDef("CharacterTypes") as TydCollection; foreach (var node in tydNode) { var type = CharacterType.FromTydTable(node as TydTable); _types.Add(type); _typeNameToType[type.FullName] = type; } }