Exemple #1
0
 public void Attack(int direction, float speedMultiplier)
 {
     isAttacking = true;
     animationHandler.SetAttackSpeedMultiplier(speedMultiplier);
     animationHandler.PlayAttackingAnimation(direction, false);
     if (OnBeforeAttacking != null)
     {
         OnBeforeAttacking();
     }
     //Debug.Log(speedMultiplier);
     //lastAttackTime = DateTime.Now;
 }
Exemple #2
0
 public void Attack(int direction, float speedMultiplier)
 {
     animationHandler.SetAttackSpeedMultiplier(speedMultiplier);
     animationHandler.PlayAttackingAnimation(direction, true);
 }