using Unity.VisualScripting;
using UnityEngine;
public class WeaponAttackAnimationNotification : StateMachineBehaviour
{
public AnimatorSupportScript m_support;
public override void OnStateExit(Animator animator,
AnimatorStateInfo stateInfo, int layerIndex)
{
m_support.attacker.SetIsAttacking(false);
}
public override void OnStateEnter(Animator animator,
AnimatorStateInfo stateInfo, int layerIndex)
{
if (m_support == null) {
m_support = animator.gameObject.GetComponent<AnimatorSupportScript>();
}
m_support.attacker.SetIsAttacking(true);
}
}