BITFALL/Assets/BITKit/Unity/Scripts/Animator/AnimatorHelper.cs

22 lines
527 B
C#
Raw Normal View History

2023-06-08 14:09:50 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
public class AnimatorHelper : MonoBehaviour
{
2023-10-24 23:37:59 +08:00
[SerializeField] private Transform root;
private void OnAnimatorMove()
2023-06-08 14:09:50 +08:00
{
if (root)
2023-10-24 23:37:59 +08:00
root.SendMessage(nameof(OnAnimatorMove));
2023-06-08 14:09:50 +08:00
}
private void AIAnimationEvent(string actionName)
{
if (root)
root.SendMessage(nameof(AIAnimationEvent), actionName);
}
2023-06-08 14:09:50 +08:00
}
}