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