protected override BTResult Execute() { if (beDead) { AnimatorStateInfo animState = animator.GetCurrentAnimatorStateInfo(0); if (animState.nameHash == stateHash) { float endTime = Mathf.Repeat(animState.normalizedTime, 1.0f); if (endTime >= 0.95f) { Debug.Log("BTActionAnimTransition Success"); if (_death.callback != null) { _death.callback(); } } } return(BTResult.Success); } return(BTResult.Failed); }