23 lines
490 B
C#
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;
|
|
}
|
|
}
|