Esempio n. 1
0
 public override void AE_EndAttack()
 {
     if (trail)
     {
         trail.EndTrail();
     }
     weapon.EndAttack();
 }
Esempio n. 2
0
 // This is called by an animation event when when attack animations are finishing.
 public void MeleeAttackEnd()
 {
     if (meleeWeapon != null)
     {
         meleeWeapon.EndAttack();
     }
     m_InAttack = false;
 }
Esempio n. 3
0
    // OnStateUpdate is called on each Update frame between OnStateEnter and OnStateExit callbacks
    //override public void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    //{
    //
    //}

    //OnStateExit is called when a transition ends and the state machine finishes evaluating this state
    override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        Weapon weapon = playerAttack.ActiveWeapon;

        if (weapon.GetType() == typeof(MeleeWeapon))
        {
            MeleeWeapon melee = weapon as MeleeWeapon;
            melee.EndAttack(lastCombo);
        }
    }
Esempio n. 4
0
 public void EndAttack()
 {
     weapon.EndAttack();
     target = null;
 }
Esempio n. 5
0
 private void EndAttack()
 {
     weapon.EndAttack();
 }
Esempio n. 6
0
 private void EndAttack()
 {
     meleeWeapon.EndAttack();
 }
Esempio n. 7
0
 public override void AE_EndAttack()
 {
     trail.EndTrail();
     wand.EndAttack();
 }
Esempio n. 8
0
 public override void AE_EndAttack()
 {
     fist.EndAttack();
 }
Esempio n. 9
0
 public void EndAttack()
 {
     isAttacking = false;
     weapon.EndAttack();
 }