Skip to main content

AttackDirectionAnimationLayerLerpSettings.LayerAnimation

A class in Root.Township, Alta.Intelligence.

Per-creature driver made by AttackDirectionAnimationLayerLerpSettings: sets a networked animator layer weight, which lerps on its own.

Constructors​

MemberWhat it is
LayerAnimation()Creates an AttackDirectionAnimationLayerLerpSettings.LayerAnimation with default values.

Fields​

2 private and internal fields
MemberWhat it is
private AnimatedLayerWeightLerp animatedPropertyThe networked animator layer weight being driven.
private float targetWeight the layer should go to.

Methods​

4 private and internal methods
MemberWhat it is
private void Alta.Intelligence.IAttackDirectionAnimation.Disable()Sets the target and layer weight to 0, logging "Error here" if the weight is still above 0 and not lerping.
private void Alta.Intelligence.IAttackDirectionAnimation.SetDirection(int direction)Sets the target weight to the direction, clamped to at least 0.
private void Alta.Intelligence.IAttackDirectionAnimation.Setup(NetworkAnimator animator, string parameterName)Looks up the named layer weight on the creature's NetworkAnimator and starts the target at its current value.
private void Alta.Intelligence.IAttackDirectionAnimation.Update(float lerp)Sets the layer weight to the target. The lerp amount is ignored because the property lerps itself.