// 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) { TutorialManager tutorialManager = FindObjectOfType <TutorialManager>(); tutorialManager.ChangeHeaderImage(walkSprite); tutorialManager.DisablePreviousButton(); tutorialManager.DisableNextButton(); }