Making characters move to destination with Maximo Animations

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;
    }

Either you need setup the animations in your code or setup the mecanim parameters in your code, as the speed and rotation are not being passed.