21 lines
647 B
C#
21 lines
647 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)
|
|
{
|
|
Debug.Log("OnStateExit");
|
|
AgeIndication AgeIndication = animator.gameObject.GetComponent<AgeIndication>();
|
|
if (AgeIndication != null)
|
|
{
|
|
if (stateInfo.IsName("Fadeout"))
|
|
{
|
|
Debug.Log("AgeIndication.OnCompleteAgeIndicationHide();");
|
|
AgeIndication.OnCompleteAgeIndicationHide();
|
|
}
|
|
}
|
|
}
|
|
}
|