Point and Click movement

Hi;
i a have problem with my Point and Click movement.It works but there is no animation.My player only hovers to the destination.A little bit help would be great.Thanks.

using System.Collections;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.EventSystems;

public class PlayerMovement : MonoBehaviour
{
public Animator animator;
public NavMeshAgent agent;
public float speedDampTime = 0.1f;

private Vector3 destinationPosition;
private bool handleInput = true;
private readonly int hashSpeedPara = Animator.StringToHash("Speed");
private const float navMeshSampleDistance = 4f;

private void Start()
{
	destinationPosition = transform.position;
}

private void Update()
{
	
}

public void OnGroundClick(BaseEventData data)
{
	if(!handleInput)
		return;
	PointerEventData pData = (PointerEventData)data;
	NavMeshHit hit;
	if (NavMesh.SamplePosition (pData.pointerCurrentRaycast.worldPosition, out hit, navMeshSampleDistance, NavMesh.AllAreas))
		destinationPosition = hit.position;
	else
		destinationPosition = transform.position;
	animator.SetFloat(hashSpeedPara, speedDampTime);
	agent.SetDestination(destinationPosition);

}

}

You didn’t fill the update method and didn’t set the animator speed parameter, so your animator state is idle. Try:

private void Update()
{
// Cache the speed that nav mesh agent wants to move at.
float speed = agent.desiredVelocity.magnitude;

    // Set the animator's Speed parameter based on the (possibly modified) speed that the nav mesh agent wants to move at.
    animator.SetFloat(hashSpeedPara, speed, speedDampTime, Time.deltaTime);

}