RandomGFGoStop/Assets/Scripts/UI/AgeIndicationStateMachine.cs

21 lines
647 B
C#
Raw Normal View History

2025-08-27 21:08:17 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AgeIndicationStateMachine : StateMachineBehaviour
{
override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
2025-09-06 05:39:03 +00:00
Debug.Log("OnStateExit");
2025-08-27 21:08:17 +00:00
AgeIndication AgeIndication = animator.gameObject.GetComponent<AgeIndication>();
if (AgeIndication != null)
{
if (stateInfo.IsName("Fadeout"))
{
2025-09-06 05:39:03 +00:00
Debug.Log("AgeIndication.OnCompleteAgeIndicationHide();");
2025-08-27 21:08:17 +00:00
AgeIndication.OnCompleteAgeIndicationHide();
}
}
}
}