示例#1
0
 public AnimationState(AnimationStateDescription stateDesc, AnimationPackage package)
 {
     Name         = stateDesc.Name;
     MinDuration  = TimeSpan.FromSeconds(stateDesc.MinDurationInSeconds);
     timeInState  = TimeSpan.Zero;
     playbackRate = 1.0f;
     blendTree    = AnimationNode.Create(package.NodeDescriptions[stateDesc.BlendTreeNodeName], package);
 }
示例#2
0
 public AnimationState(AnimationStateDescription stateDesc, AnimationPackage package)
 {
     Name = stateDesc.Name;
     MinDuration = TimeSpan.FromSeconds(stateDesc.MinDurationInSeconds);
     timeInState = TimeSpan.Zero;
     playbackRate = 1.0f;
     blendTree = AnimationNode.Create(package.NodeDescriptions[stateDesc.BlendTreeNodeName], package);
 }