Animancer.Examples.StateMachines Namespace

Summary

Code for the State Machines examples.

Class Types

Class Summary
ActionState A Animancer.Examples.StateMachines.CharacterState which plays an animation then returns to idle.
AttackState A Animancer.Examples.StateMachines.CharacterState which can perform Animancer.Examples.StateMachines.Weapon.AttackAnimations in sequence.
BasicCharacterBrain Uses player input to control a Animancer.Examples.StateMachines.Character.
Character A centralised group of references to the common parts of a character and a state machine for their actions.
CharacterParameters The parameters that control a Animancer.Examples.StateMachines.Character.
CharacterState A state for a Animancer.Examples.StateMachines.CharacterState.Character.
Equipment Manages the items equipped by a Animancer.Examples.StateMachines.Character.
EquipState A Animancer.Examples.StateMachines.CharacterState which managed the currently equipped Animancer.Examples.StateMachines.EquipState.CurrentWeapon.
FlinchState A Animancer.Examples.StateMachines.CharacterState which activates itself when the character takes damage.
HealthPool Manages a character's health and damage received.
IdleState A Animancer.Examples.StateMachines.CharacterState which plays an animation.
MoveState A Animancer.Examples.StateMachines.CharacterState which moves the character according to their Animancer.Examples.StateMachines.CharacterParameters.MovementDirection.
MovingCharacterBrain Uses player input to control a Animancer.Examples.StateMachines.Character.
RootMotionRedirect Takes the root motion from the UnityEngine.Animator attached to the same UnityEngine.GameObject and applies it to a UnityEngine.Rigidbody on a different object.
Weapon Holds various animations relating to the use of a weapon. In a real game, this class might have other details like damage, damage type, weapon category, etc. It could also inherit from a base Item class for things like weight, cost, and description.
WeaponsCharacterBrain Uses player input to control a Animancer.Examples.StateMachines.Character.

Enum Types

Enum Summary
CharacterStatePriority Levels of importance for Animancer.Examples.StateMachines.CharacterStates.