예제 #1
0
 public void PlayAnimation(int layerID, IAnimationInput animationInput, Action OnAnimationEnd = null, Func <float> InputWeightProvider = null)
 {
     if (animationInput.AnimationInputType == AnimationInputType.SEQUENCED)
     {
         this.PlaySequencedAnimation(layerID, animationInput as SequencedAnimationInput, OnAnimationEnd);
     }
     else if (animationInput.AnimationInputType == AnimationInputType.BLENDED)
     {
         this.PlayBlendedAnimation(layerID, animationInput as BlendedAnimationInput, InputWeightProvider);
     }
 }
예제 #2
0
        public static AnimationVisualFeedbackPlaySyncEvent alloc(AnimationVisualFeedback p_animationVisualFeedback,
                                                                 AnimationLayers p_layerID, IAnimationInput p_animationInput)
        {
            AnimationVisualFeedbackPlaySyncEvent l_instance = new AnimationVisualFeedbackPlaySyncEvent();

            l_instance.Completed = false;
            l_instance.AnimationVisualFeedback = p_animationVisualFeedback;
            l_instance.LayerID        = p_layerID;
            l_instance.AnimationInput = p_animationInput;
            return(l_instance);
        }
예제 #3
0
 public void PlayAnimationV2(int LayerID, IAnimationInput Animation, Action OnAnimationEnd = null, Func <float> InputWeightProvider = null)
 {
     this.AnimatorPlayableObject.PlayAnimation(LayerID, Animation, OnAnimationEnd, InputWeightProvider);
 }