| 12345678910111213141516171819202122 |
- 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<Animator>();
- if (animator == null) return;
- }
- public void AnimationPauseEvent()
- {
- //animator.speed = 0;
- }
- }
|