if (isGrounded)
{
jumpDash = true;
dashCounter = 0;
}
else
{
dashCounter -= Time.deltaTime;
}
if(dashCounter <= 0)
{
jumpDash = true;
}
if (Input.GetButtonDown("Jump"))
{
if (isGrounded)
{
theRB.velocity = new Vector2(theRB.velocity.x, jumpForce);
}
else
{
if (jumpDash)
{
dashCounter = dashTime;
if (!theSR.flipX)
{
theRB.velocity = transform.right * dashSpeed;
}
else
{
theRB.velocity = -transform.right * dashSpeed;
}
}
}
}

์ด๋ ‡๊ฒŒ ํ•ด๋ณผ๋ž˜?