Health/Assets/Scripts/PoseCheck/GudieAnimationManager.cs

30 lines
532 B
C#

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 Stop()
{
_animator.StopPlayback();
}
public void FrameEstimate()
{
EventManager.Instance.Dispatch("PoseEstimate");
}
}