3DTD/Assets/Scripts/UI/StopAnimationOnClick.cs

14 lines
264 B
C#

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