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

14 lines
264 B
C#
Raw Permalink Normal View History

2024-04-21 13:20:30 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StopAnimationOnClick : MonoBehaviour
{
[SerializeField] private Animator animator;
public void OnClick()
{
animator.SetBool("Clicked", true);
}
}