how to fix this warning

how to fix this warning
Assets/Script/Enemy.cs(20,22): warning CS0414: The private field `Enemy.followingPlayer’ is assigned but its value is never used
My code

public static Rigidbody2D eRB;
public static Animator eAn;

public static float speed = 5;

public static bool facingLeft = true;

private float idle;
private float walk;

private Vector3 distanceBetweenPlayerAndEnemy;
//[SerializeField]
private Transform tmPlayer;

private bool followingPlayer;

// Use this for initialization
void Start () 
{
	
	eAn = GetComponent<Animator> ();
	eRB = GetComponent<Rigidbody2D> ();
	idle = Random.Range (3, 8);

	tmPlayer = GameObject.Find ("Player").GetComponent<Transform> ();
}

// Update is called once per frame
void Update () 
{
	eRB.velocity = new Vector2( facing() * speed, eRB.velocity.y);
	eAn.SetFloat ("Speed", speed);

	transform.localScale = new Vector3(facing(), transform.localScale.y, transform.localScale.z);

	distanceBetweenPlayerAndEnemy.x = tmPlayer.position.x - transform.position.x;
	distanceBetweenPlayerAndEnemy.y = tmPlayer.position.y - transform.position.y;

	if (distanceBetweenPlayerAndEnemy.y == Mathf.Clamp (distanceBetweenPlayerAndEnemy.y, -2, 2) && distanceBetweenPlayerAndEnemy.x == Mathf.Clamp(distanceBetweenPlayerAndEnemy.x,-10,10))
	{
		followingPlayer = true;
	}
	else
	{
		followingPlayer = false;
	}
	Attack();
	Transform ();
}

float facing()
{
	return facingLeft ? -1 : 1;
}

void Attack()
{
	if(distanceBetweenPlayerAndEnemy.x > 2 && facingLeft == true)
	{
		facingLeft = false;
	}
	else if(distanceBetweenPlayerAndEnemy.x < -2 && facingLeft == false)
	{
		facingLeft = true;
	}

	if(distanceBetweenPlayerAndEnemy.x == Mathf.Clamp(distanceBetweenPlayerAndEnemy.x,-2,2))
	{
		eAn.SetBool("Attack", true);
		eRB.velocity = new Vector2(0, eRB.velocity.y);
	}
	else
	{
		eAn.SetBool("Attack", false);
		speed = 5;
	}
	
}

void Transform()
{
	if(idle > 0)
	{
		idle -= Time.deltaTime;

		if(idle < 0)
		{
			walk = Random.Range(10,15);
			speed = Random.Range(3,8);
		}
	}

	if(walk > 0)
	{
		walk -= Time.deltaTime;

		if(walk < 0)
		{
			idle = Random.Range(3,8);
			speed = 0;
		}
	}
}

}

It means literally what it says. You’ve assigned a value to the variable, however you never use that variable so the compiler is saying “Why do you even have it?”, the variable is unused, nowhere in your code do you read the value of followingPlayer. Once you use that variable it will no longer warn you. Also note that warnings are not errors, they will not stop your game from running, they only point out common patterns in code that can often lead to mistakes that then actually cause problems. Also, to get more help in the future, many people prefer questions with more descriptive titles, so that while scrolling through people can see if the question is in their area of experience without having to click first.

my problem enemy follow Player even if Player is out of it is Range.