Esempio n. 1
0
 // 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();
 }
Esempio n. 2
0
 // 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();
 }