예제 #1
0
    protected virtual void MeleeWeakAttackInput()
    {
        if (cc.anime == null)
        {
            return;
        }

        if (weakAttackInput.GetButtonDown() && MeleeAttackStaminaConditions())
        {
            cc.anime.SetInteger("AttackID", meleeManager.GetAttackID());
            cc.anime.SetTrigger("WeakAttack");
        }
    }/// WEAK ATK INPUT
예제 #2
0
        /// <summary>
        /// WEAK ATK INPUT
        /// </summary>
        protected virtual void MeleeWeakAttackInput()
        {
            if (character.animator == null)
            {
                return;
            }

            if (weakAttackInput.GetButtonDown())
            {
                character.animator.SetInteger("AttackID", meleeManager.GetAttackID());
                character.animator.SetTrigger("WeakAttack");
            }
        }
예제 #3
0
        public override void Attack(bool strongAttack = false, int _newAttackID = -1, bool forceCanAttack = false)
        {
            if (MeleeManager && _newAttackID != -1)
            {
                attackID = _newAttackID;
            }
            else
            {
                attackID = MeleeManager.GetAttackID();
            }

            base.Attack(strongAttack, _newAttackID, forceCanAttack);
        }