Exemple #1
0
 public float GetWeight(UMADnaBase umaDna = null)
 {
     if (_masterWeightType == MasterWeightType.UseDNAValue)
     {
         return(_DNAForWeight.Evaluate(umaDna));
     }
     else
     {
         return(_globalWeight);
     }
 }
        public float EvaluateDemo()
        {
            var dna = new DynamicUMADna();

            dna._names = new string[1] {
                "DNAValue"
            };
            dna._values = new float[1] {
                _exampleDNAValue
            };
            return(_exampleEvaluator.Evaluate(dna));
        }