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