// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { animator.GetComponent <BossHealth>().isInvulnerable = false; magic = animator.GetComponent <ChantMagic>(); boss = animator.GetComponent <Boss>(); magic.Sit(); }
// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { boss = animator.GetComponent <Boss>(); magic = animator.GetComponent <ChantMagic>(); magic.Chant(); }