Пример #1
0
 protected virtual void UpdateMeleeAnimations()
 {
     if (cc.animator == null || meleeManager == null)
     {
         return;
     }
     cc.animator.SetInteger("AttackID", meleeManager.GetAttackID());
     cc.animator.SetInteger("DefenseID", meleeManager.GetDefenseID());
     cc.animator.SetBool("IsBlocking", isBlocking);
     cc.animator.SetFloat("MoveSet_ID", meleeManager.GetMoveSetID(), .2f, Time.deltaTime);
 }
Пример #2
0
        protected virtual void UpdateMeleeAnimations()
        {
            if (cc.animator == null || meleeManager == null)
            {
                return;
            }

            cc.animator.SetInteger(vAnimatorParameters.AttackID, meleeManager.GetAttackID());
            cc.animator.SetInteger(vAnimatorParameters.DefenseID, meleeManager.GetDefenseID());
            cc.animator.SetBool(vAnimatorParameters.IsBlocking, isBlocking);
            cc.animator.SetFloat(vAnimatorParameters.MoveSet_ID, meleeManager.GetMoveSetID(), .2f, Time.deltaTime);
            isEquipping = cc.IsAnimatorTag("IsEquipping");
        }