RandomGFGoStop/Assets/Scripts/UI/AgeIndicationStateMachine.cs

19 lines
538 B
C#

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<AgeIndication>();
if (AgeIndication != null)
{
if (stateInfo.IsName("Fadeout"))
{
AgeIndication.OnCompleteAgeIndicationHide();
}
}
}
}