22 lines
527 B
C#
22 lines
527 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class AnimatorHelper : MonoBehaviour
|
||
|
{
|
||
|
[SerializeField] private Transform root;
|
||
|
|
||
|
private void OnAnimatorMove()
|
||
|
{
|
||
|
if (root)
|
||
|
root.SendMessage(nameof(OnAnimatorMove));
|
||
|
}
|
||
|
private void AIAnimationEvent(string actionName)
|
||
|
{
|
||
|
|
||
|
if (root)
|
||
|
root.SendMessage(nameof(AIAnimationEvent), actionName);
|
||
|
}
|
||
|
}
|
||
|
}
|