override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { PauseButton.GetSingleton().Pause(true); }