ro-webgl/Assets/Src/Utils/AnimationEventTriggers.cs
2021-12-21 09:40:39 +08:00

23 lines
490 B
C#

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;
}
}