Interface ICharacterAnimationController
Centralized animation control interface for characters. Abstracts Animator parameter setting and integrates with FishNet NetworkAnimator for sync.
public interface ICharacterAnimationController : ICharacterBehaviour
- Inherited Members
Methods
ResetDeath()
Resets the death animation state and restores default locomotion params. Called on resurrection or when death was mispredicted (reconcile correction). Resets Death trigger, clears Speed to 0, restores Grounded/Crouching defaults, and clears any lingering Attack/Cast/Roll/Jump/Block state.
void ResetDeath()
SetBlocking(bool)
Sets the blocking state.
void SetBlocking(bool blocking)
Parameters
blockingbool
SetCrouching(bool)
Sets whether the character is crouching.
void SetCrouching(bool crouching)
Parameters
crouchingbool
SetGrounded(bool)
Sets whether the character is on the ground.
void SetGrounded(bool grounded)
Parameters
groundedbool
SetRootMotion(bool)
Enables or disables root motion on the Animator.
void SetRootMotion(bool enabled)
Parameters
enabledbool
SetSpeed(float)
Sets the locomotion speed parameter (0=Idle, 0.5=Walk, 1=Run, 1.5=Sprint).
void SetSpeed(float speed)
Parameters
speedfloat
TriggerAttack()
Triggers an attack animation.
void TriggerAttack()
TriggerCast()
Triggers a spell cast animation.
void TriggerCast()
TriggerDeath()
Triggers the death animation and suppresses all other animation state.
void TriggerDeath()
TriggerJump()
Triggers a jump animation.
void TriggerJump()
TriggerRoll()
Triggers a roll/dodge animation.
void TriggerRoll()