using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Animator))] public class AnimationEventTriggers : MonoBehaviour { Animator animator; // Start is called before the first frame update void Start() { animator = GetComponent(); if (animator == null) return; } public void AnimationPauseEvent() { //animator.speed = 0; } }