void LateUpdate() { if (_resetStateCounter == FC_CONST.MAX_SAFE_FRAMECOUNT) { _animator.SetInteger("state", -1); _resetStateCounter = -1; if (_actionCtrl != null) { _preAniPlayTime = _animator.GetCurrentAnimatorStateInfo(0).normalizedTime; _actionCtrl.AniIsStart(); } } if (!_animator.IsInTransition(0) && _resetStateCounter > 0) { _animator.SetInteger("state", -1); //_showAnimationIdx = true; _resetStateCounter = -1; //_animator.SetInteger("state", -1); if (_actionCtrl != null) { _preAniPlayTime = _animator.GetCurrentAnimatorStateInfo(0).normalizedTime; _actionCtrl.AniIsStart(); } } }