示例#1
0
 private static IManifest OfComplexBlendTreeBased(ComboGestureMassiveBlend massiveBlend, AnimationClip fallbackWhenAnyClipIsNull)
 {
     return(MassiveBlendManifest.OfComplex(
                massiveBlend.mode,
                massiveBlend.blendTreeMoods
                .Select(mood => SharedLayerUtils.FromMoodSet(mood, fallbackWhenAnyClipIsNull))
                .ToList(),
                (BlendTree)massiveBlend.blendTree,
                massiveBlend.transitionDuration
                ));
 }
示例#2
0
 private static IManifest OfSimple(ComboGestureMassiveBlend massiveBlend, AnimationClip fallbackWhenAnyClipIsNull)
 {
     return(MassiveBlendManifest.OfParameterBased(
                massiveBlend.mode,
                new List <IManifest>
     {
         SharedLayerUtils.FromMoodSet(massiveBlend.simpleZero, fallbackWhenAnyClipIsNull),
         SharedLayerUtils.FromMoodSet(massiveBlend.simpleOne, fallbackWhenAnyClipIsNull),
     },
                massiveBlend.simpleParameterName,
                massiveBlend.transitionDuration
                ));
 }