Exemple #1
0
        public static MorphGroup GetMorphGroups(string name)
        {
            MorphGroup group = null;

            if (!morphGroups.ContainsKey(name))
            {
                var assetpath = getAssetPath(name);
                GenerateMorphGroupsFromFile(name);
            }
            group = morphGroups[name];
            return(group);
        }
Exemple #2
0
        public static void GenerateMorphGroupsFromFile(string name)
        {
            var assetpath = getAssetPath(name);
            var filePath  = GetFilePath(assetpath);

            if (MorphGroupFileExists(assetpath))
            {
                morphGroups[name] = new MorphGroup(name);
                var fileData = File.ReadAllText(filePath);
                var lines    = fileData.Split("\n"[0]);
                GenerateSubgroupsFromLines(lines, name);
            }
        }