Esempio n. 1
0
        private static List <AnimToTransitionEntry> DecomposePermutation(ManifestBinding manifestBinding)
        {
            var manifest = (PermutationManifest)manifestBinding.Manifest;

            return(manifest.Poses
                   .Select(pair => new AnimToTransitionEntry(
                               new TransitionCondition.ActivityBoundTransitionCondition(manifestBinding.StageValue, manifest.TransitionDuration(), pair.Key, manifestBinding.LayerOrdinal),
                               pair.Value
                               ))
                   .ToList());
        }
        private static ManifestBinding RemapManifest(ManifestBinding manifestBinding, Dictionary <QualifiedAnimation, AnimationClip> remapping, Dictionary <BlendTree, BlendTree> blendToRemappedBlend)
        {
            var remappedManifest = manifestBinding.Manifest.NewFromRemappedAnimations(remapping, blendToRemappedBlend);

            return(new ManifestBinding(manifestBinding.StageValue, remappedManifest, manifestBinding.LayerOrdinal));
        }