Character Animation

The issue I am having is, I made a new Animation for movement and applied 3 motions to the movement. When I click to add idle or any other animation to the blend tree it doesn’t apply it.

I fixed the first issue. Now my character when I play it playes both animations idle and run.


As for my script click to move also isn’t working mouse button down part.


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class ClickToMove : MonoBehaviour {

    private Animator mAnimator;

    private NavMeshAgent mNavMeshAgent;

    private bool mRun = false;


    // Start is called before the first frame update
    void Start() {

        mAnimator = GetComponent<Animator>();
        mNavMeshAgent = GetComponent<NavMeshAgent>();


    }
    // Update is called once per frame
    void Update()
    {

        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);

        RaycastHit hit;

        if (Input.GetMouseButtonDown(0))
        {
           
            {
                if (Physics.Raycast(ray, out hit, 100))
                {
                    mNavMeshAgent.destination = hit.point;
                }
            }

            if (mNavMeshAgent.remainingDistance <= mNavMeshAgent.stoppingDistance)
            {
                mRun = false;
            }
            else
            {
                mRun = true;
            }

            mAnimator.SetBool("Run", mRun);
        }
    }
}