Пример #1
0
 public override void OnEnter(CharacterState characterState, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (TransitionConditionChecker.MakeTransition(characterState.characterControl, transitionConditions))
     {
         animator.SetInteger(HashManager.Instance.ArrMainParams[(int)MainParameterType.TransitionIndex], Index);
     }
 }
 public override void UpdateAbility(CharacterState characterState, Animator animator, AnimatorStateInfo stateInfo)
 {
     if (!Interfered(characterState.characterControl))
     {
         if (TransitionConditionChecker.MakeTransition(characterState.characterControl, transitionConditions))
         {
             characterState.ANIMATION_DATA.InstantTransitionMade = true;
             MakeInstantTransition(characterState.characterControl);
         }
     }
 }
Пример #3
0
        public override void UpdateAbility(CharacterState characterState, Animator animator, AnimatorStateInfo stateInfo)
        {
            characterState.JUMP_DATA.CheckWallBlock = StartCheckingWallBlock();

            if (animator.GetInteger(HashManager.Instance.ArrMainParams[(int)MainParameterType.TransitionIndex]) == 0)
            {
                if (!characterState.characterControl.animationProgress.LockTransition)
                {
                    if (TransitionConditionChecker.MakeTransition(characterState.characterControl, transitionConditions))
                    {
                        animator.SetInteger(HashManager.Instance.ArrMainParams[(int)MainParameterType.TransitionIndex], Index);
                    }
                }
            }
        }