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;
}
}
}
}
์ด๋ ๊ฒ ํด๋ณผ๋?
์ด๊ฒ๋ ์๋๋๋ฐ ์์ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ค๊ณ ์ฌ๊น?
ใ ใ ํ๋ฒ๋ด๋ณด์ - dc App
์ด ๊ธ์ฒ๋ผ ์ฝ๋ ๋ณต์ฌํ๊ณ ์ถ์๋ฐ ์ด์ผํ๊ฑฐ?
๊ทธ๋ฅ vscode์์ ๋ณต๋ถํ๊ฑฐ์ผ - dc App