public UMAPredefinedDNA GetRandomDNA()
        {
            UMAPredefinedDNA theDNA = new UMAPredefinedDNA();

            foreach (RandomDNA rd in this.RandomDna)
            {
                theDNA.AddDNA(rd.DnaName, UnityEngine.Random.Range(rd.MinValue, rd.MaxValue));
            }
            return(theDNA);
        }
        public UMAPredefinedDNA Clone()
        {
            UMAPredefinedDNA newdna = new UMAPredefinedDNA();

            foreach (DnaValue d in PreloadValues)
            {
                newdna.AddDNA(d.Name, d.Value);
            }
            return(newdna);
        }
Exemple #3
0
 public void AddRange(UMAPredefinedDNA newDNA)
 {
     PreloadValues.AddRange(newDNA.PreloadValues);
 }