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); }