override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { buttonScript.EndRecharge(); buttonScript.GetComponent <Button>().interactable = true; }