Health/Assets/Scripts/PoseCheck/GudieAnimationManager.cs

25 lines
462 B
C#
Raw Normal View History

2023-11-07 13:55:35 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GudieAnimationManager : MonoBehaviour
{
private Animator _animator;
private void Awake()
{
_animator = transform.GetComponentInChildren<Animator>();
}
public void Play(string name)
{
_animator.CrossFade(name, 0.5f);
}
public void FrameEstimate()
{
2023-11-07 15:28:19 +00:00
EventManager.Instance.Dispatch("PoseEstimate");
2023-11-07 13:55:35 +00:00
}
}