Exemplo n.º 1
0
 public DNAEvaluator(DNAEvaluator other)
 {
     _calcOption  = other.calcOption;
     _dnaName     = other.dnaName;
     _dnaNameHash = UMAUtils.StringToHash(_dnaName);
     _evaluator   = other.evaluator == null ? DNAEvaluationGraph.Default : new DNAEvaluationGraph(other.evaluator);
     _multiplier  = other.multiplier;
     _initialized = true;
 }
Exemplo n.º 2
0
 public MasterWeight(MasterWeightType masterWeightType = MasterWeightType.UseGlobalValue, float defaultWeight = 1f, string dnaForWeightName = "", DNAEvaluationGraph dnaForWeightGraph = null, float dnaForWeightMultiplier = 1f)
 {
     _masterWeightType = masterWeightType;
     _globalWeight     = defaultWeight;
     if (!string.IsNullOrEmpty(dnaForWeightName))
     {
         _DNAForWeight = new DNAEvaluator(dnaForWeightName, dnaForWeightGraph, dnaForWeightMultiplier);
     }
     else
     {
         _DNAForWeight = new DNAEvaluator("", DNAEvaluationGraph.Raw, 1);
     }
 }
Exemplo n.º 3
0
 public MasterWeight(MasterWeight other)
 {
     _masterWeightType = other._masterWeightType;
     _globalWeight     = other._globalWeight;
     _DNAForWeight     = new DNAEvaluator(other._DNAForWeight);
 }
Exemplo n.º 4
0
 public void Remove(DNAEvaluator evaluator)
 {
     _dnaEvaluators.Remove(evaluator);
 }
Exemplo n.º 5
0
 public void Insert(int index, DNAEvaluator evaluator)
 {
     _dnaEvaluators.Insert(index, evaluator);
 }
Exemplo n.º 6
0
 public int IndexOf(DNAEvaluator evaluator)
 {
     return(_dnaEvaluators.IndexOf(evaluator));
 }
Exemplo n.º 7
0
 public bool Contains(DNAEvaluator evaluator)
 {
     return(_dnaEvaluators.Contains(evaluator));
 }
Exemplo n.º 8
0
 public void Add(DNAEvaluator evaluator)
 {
     _dnaEvaluators.Add(evaluator);
 }