Exemple #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)
 {
     base.OnStateEnter(animator, stateInfo, layerIndex);
     m_ToothyAIBossController = m_AIBossController.GetComponent <ToothyAIBossController>();
     m_ToothyAIBossController.ToggleHitboxColliders("ToothySwipe", true);
     // m_ToothyAIBossController.RotateTowards(m_Player.transform);
     // m_ToothyAIBossController.transform.LookAt(m_Player.transform);
 }
Exemple #2
0
 // OnStateExit is called when a transition ends and the state machine finishes evaluating this state
 override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     m_ToothyAIBossController.ToggleHitboxColliders("ToothySwipe", false);
     // m_ToothyAIBossController.ToggleToothyHitboxColliders("ToothySwipe", false);
     // m_ToothyAIBossController.ToggleToothyParticleSystemEmission (false);
 }
 // 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)
 {
     base.OnStateEnter(animator, stateInfo, layerIndex);
     m_ToothyAIBossController = m_AIBossController.GetComponent <ToothyAIBossController>();
     m_ToothyAIBossController.ToggleHitboxColliders("ToothyStomp", true);
 }
 // OnStateExit is called when a transition ends and the state machine finishes evaluating this state
 override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     m_ToothyAIBossController.ToggleHitboxColliders("ToothyStomp", false);
 }