Exemplo n.º 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); });
 }
Exemplo n.º 2
0
 public void KillContextAction(SequencedAnimationInput ContextActionAnimation)
 {
     this.AnimatorPlayableObject.DestroyLayer(AnimationLayerStatic.AnimationLayers[AnimationLayerID.ContextActionLayer].ID);
 }
Exemplo n.º 3
0
 public void PlaySequencedAnimation(int layerID, SequencedAnimationInput SequencedAnimationInput)
 {
     this.AnimatorPlayableObject.PlayAnimation(layerID, SequencedAnimationInput);
 }