// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { _canvas = GameObject.Find("Canvas"); _audioController = GameObject.Find("Audio Source").GetComponent <AudioController>(); _gameSceneController = GameObject.Find("GameManager").GetComponent <GameSceneController>(); _gameSceneController.PlayStartAudio(); }