using System.Collections; using System.Collections.Generic; using UnityEngine; public class AgeIndicationStateMachine : StateMachineBehaviour { override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { AgeIndication AgeIndication = animator.gameObject.GetComponent(); if (AgeIndication != null) { if (stateInfo.IsName("Fadeout")) { AgeIndication.OnCompleteAgeIndicationHide(); } } } }