I’am attempting to move some NPC characters between desintations (objects) and also use maximo animations like walk, run etc
When I run my code, the character goes to the destination but there is no animation.
void Start()
{
agent = gameObject.GetComponent<NavMeshAgent>();
GetASM().SetTransitionHandler(this);
controller = GetComponent<CharacterController>();
asm = GetASM();
asm.ChangeState("move");
agent.destination = destination[currentWaypoint].position;
}