public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
 {
     wielder       = animator.GetComponent <AICombatant>();
     currentAttack = wielder.attacks[attackIndex];
     currentAttack.currentMovementBehaviour = currentMovementBehaviour;
     currentAttack.StateStart();
 }
 private void Awake()
 {
     beam = GetComponent <LineRenderer>();
     ai   = GetComponentInParent <AICombatant>();
     Debug.Log(ai);
     beam.enabled = false;
 }