KnockbackState

KnockbackState allows the actor to play an animation and/or be knocked back upon taking damage.

Public Methods

Public Members

public const string idString = “Knockback”

public float speed

The speed at which the actor is knocked back.

public int maxFrames

The maximum number of frames the knockback can last.

public Direction.Horizontal knockbackDirection

The direction of the knockback.