Ejemplo n.º 1
0
 /// <summary>
 /// Occurs when the animator enters the parent state, creates hand particles and targeting.
 /// </summary>
 /// <param name="animator">Reference to the parent animator.</param>
 /// <param name="stateInfo">Information about the state.</param>
 /// <param name="layerIndex">Index of the current animator layer.</param>
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (animator.gameObject.tag == "Player")  // ignore for the AI
     {
         GlobalFuncs.TheMagicalSettings().UpdateComboDisplay(ComboDepth, ComboName);
     }
 }