Пример #1
0
 public void OnEnableAttack()
 {
     cc.currentStaminaRecoveryDelay = meleeManager.GetAttackStaminaRecoveryDelay();
     cc.currentStamina -= meleeManager.GetAttackStaminaCost();
     cc.lockRotation    = true;
     isAttacking        = true;
 }
Пример #2
0
        public virtual void OnEnableAttack()
        {
            if (meleeManager == null)
            {
                meleeManager = GetComponent <vMeleeManager>();
            }
            if (meleeManager == null)
            {
                return;
            }

            cc.currentStaminaRecoveryDelay = meleeManager.GetAttackStaminaRecoveryDelay();
            cc.currentStamina -= meleeManager.GetAttackStaminaCost();
            isAttacking        = true;
        }