using System.Collections; using System.Collections.Generic; using UnityEngine; public class StopAnimationOnClick : MonoBehaviour { [SerializeField] private Animator animator; public void OnClick() { animator.SetBool("Clicked", true); } }