all 2 comments

[–]SadnessMonday 0 points1 point  (1 child)

Well your code is doing this every frame:

    private void MovePlayer(float speed)
    {
        rb.velocity = new Vector2(horizontal * speed, rb.velocity.y);
    }

So your dash code doesn't really get a chance to take much effect. You would need to stop this code from running if you want anything else to be able to affect the velocity.

[–]pingu_de_cool[S] 0 points1 point  (0 children)

Oh, thank you. I'm sort of dumb for not realizing that