Пример #1
0
    public void Dash()
    {
        AudioManager.Instance.PlaySound("Dash");
        if (canDash)
        {
            playerAnimations.DashStart();
            playerRb.AddForce(Vector2.right * dashSpeed, ForceMode2D.Impulse);

            canDash   = false;
            isDashing = true;
        }
    }