Wait until a certain radius to play Animation

So I have a script that plays my chest animation when the player is less than 1 unit close to the chest and RIGHT CLICKS on it. Left click is used to move, right click to interact with objects. However, if a player right clicks on an object from say 15 units, he will run to it and interact, but the animation will not play.

So is there any way to wait until player is close to play the animation if the player is >1f radius?

Here is the script

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

public class ChestAnimation : MonoBehaviour
	private float radius;
	private float distance;
	public Animator anim;
	public GameObject Player;
	public GameObject Target;

	private void Start()
		anim = GetComponent<Animator>();

	private void Update()
		radius = Vector3.Distance(Player.transform.position, Target.transform.position);
		if (radius < 1f && Input.GetMouseButtonDown(1))
			Debug.Log("Animation played");

Your script require Right Mouse button to be clicked when player is close enough to the chest. You either have to remove that condition, or save button clicks as a bool of sorts