Files
BITFALL/Assets/BITKit/Unity/Scripts/Animator/AnimatorHelper.cs
CortexCore 4adcd33811 breakpoint
before change animation type
2023-12-26 20:07:19 +08:00

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);
}
}
}