/// <summary>
 /// Process the recipes. This generator simply accumulates the recipes for processing
 /// once all recipes are in the list.
 /// </summary>
 /// <param name="recipe"></param>
 public void ProcessRecipe(UMAPackedRecipeBase recipe)
 {
     if (recipe.resourcesOnly)
     {
         return;
     }
     Recipes.Add(recipe);
 }
Esempio n. 2
0
        public List <OverlayColorData> GetDefaultColors()
        {
            if (RaceColorValues.Count > 0)
            {
                return(RaceColorValues);
            }
            if (GetPackedRecipe() == null)
            {
                return(RaceColorValues);
            }

            OverlayColorData[] colors = UMAPackedRecipeBase.UnpackColors(packedRecipe);
            RaceColorValues.AddRange(colors);
            return(RaceColorValues);
        }
Esempio n. 3
0
        // Start is called before the first frame update
        void Start()
        {
            umaData.staticCharacter = true;
            umaData.SetupSkeleton();
            DNA = UMAPackedRecipeBase.UnPackDNA(PackedDNA);
            UMA.UMAData.UMARecipe umaRecipe = umaData._umaRecipe;

            umaRecipe.ClearDna();

            foreach (UMADnaBase umd in DNA)
            {
                umaRecipe.AddDna(umd);
            }
            umaData._umaRecipe.ClearDNAConverters();
        }
Esempio n. 4
0
 public Dictionary <string, float> GetDefaultDNA()
 {
     if (GetPackedRecipe() == null)
     {
         return(RaceDNAValues);
     }
     if (RaceDNAValues.Count == 0)
     {
         List <UMADnaBase> dna = UMAPackedRecipeBase.UnPackDNA(packedRecipe.packedDna);
         foreach (UMADnaBase udb in dna)
         {
             for (int i = 0; i < udb.Names.Length; i++)
             {
                 if (RaceDNAValues.ContainsKey(udb.Names[i]) == false)
                 {
                     RaceDNAValues.Add(udb.Names[i], udb.Values[i]);
                 }
             }
         }
     }
     return(RaceDNAValues);
 }
Esempio n. 5
0
 /// <summary>
 /// Process the recipes. This generator simply accumulates the recipes for processing
 /// once all recipes are in the list.
 /// </summary>
 /// <param name="recipe"></param>
 public void ProcessRecipe(UMAPackedRecipeBase recipe)
 {
     Recipes.Add(recipe);
 }
            public UMADnaBase[] GetAllDna()
            {
                List <UMADnaBase> unpackedDna = UMAPackedRecipeBase.UnPackDNA(packedDna);

                return(unpackedDna.ToArray());
            }