Exemple #1
0
 public void PlayContextAction(SequencedAnimationInput ContextActionAnimation, bool rootMotion, Action OnAnimationFinished = null)
 {
     this.RootMotionEnabled.SetValue(rootMotion);
     this.AnimatorPlayableObject.PlayAnimation(AnimationLayerStatic.AnimationLayers[AnimationLayerID.ContextActionLayer].ID, ContextActionAnimation, () => { this.OnAnimationFinished(OnAnimationFinished); });
 }
Exemple #2
0
 public void KillContextAction(SequencedAnimationInput ContextActionAnimation)
 {
     this.AnimatorPlayableObject.DestroyLayer(AnimationLayerStatic.AnimationLayers[AnimationLayerID.ContextActionLayer].ID);
 }
Exemple #3
0
 public void PlaySequencedAnimation(int layerID, SequencedAnimationInput SequencedAnimationInput)
 {
     this.AnimatorPlayableObject.PlayAnimation(layerID, SequencedAnimationInput);
 }