Beispiel #1
0
 private void Attack()
 {
     if (isAttacking)
     {
         bool attackEnd = attackComponent.Attack("Attack1");
         if (attackEnd)
         {
             attackComponent.AttackMotionEnd("Attack1");
             weapon.enabled = false;
             isAttacking    = false;
             comboCount     = 0;
         }
         else
         {
             if (input.HasAttackInput() && comboCount < 4)
             {
                 attackComponent.AttackAndIntervalReset("Attack1");
                 weapon.enabled = true;
                 comboCount++;
             }
         }
     }
 }
Beispiel #2
0
 void LateUpdate()
 {
     attackComponent.AttackMotionEnd("Attack");
     skillPlaceComponent.StopSkillAttackAnimation("Skill");
 }