Esempio n. 1
0
 public void Evaluate(float timeInSecond)
 {
     SourceNode?.Evaluate(timeInSecond);
     DestinationNode?.Evaluate(timeInSecond);
     if (SourceNode == null)
     {
         Runtime.CGfxAnimationRuntime.CopyPose(OutPose, DestinationNode.OutPose);
     }
     if (DestinationNode == null)
     {
         Runtime.CGfxAnimationRuntime.CopyPose(OutPose, SourceNode.OutPose);
     }
     if (EvaluateWeight != null)
     {
         Weight = EvaluateWeight.Invoke();
     }
     Runtime.CGfxAnimationRuntime.BlendPose(OutPose, SourceNode.OutPose, DestinationNode.OutPose, Weight);
 }