Esempio n. 1
0
 public void TryDoDash()
 {
     if (!IsDashing && DashCooldown <= 0 && rb2d.velocity.sqrMagnitude > 0.1)
     {
         IsDashing = true;
         lockable.LockMovement();
         dashTime = startDashTime;
     }
 }