using DG.Tweening; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [System.Serializable] [RequireComponent(typeof(Button))] public class ButtonTriggerAnimation : MonoBehaviour { public Animator tagetAnimator; public string animationName; Button button; // Start is called before the first frame update void Start() { if (tagetAnimator == null) return; button = GetComponent