float move = Input.GetAxis("Horizontal");
GetComponent<Rigidbody2D>().velocity = new Vector2(move * maxSpeed, GetComponent<Rigidbody2D>().velocity.y);
์ด๋ ‡๊ฒŒ ์›€์ง์ด๊ณ .

์ ํ”„ํ• ๋•Œ๋Š”

this.GetComponent<Rigidbody2D>().velocity = new Vector2(GetComponent<Rigidbody2D>().velocity.x, 0);
this.GetComponent<Rigidbody2D>().AddForce(new Vector2(0, jumpForce));

์ด๋ ‡๊ฒŒ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ–ˆ๋Š”๋ฐ.

velocity์™€ addforce์˜ ์ฐจ์ด๊ฐ€ ๋ญ์ง€??.. ย ์ ํ”„ํ• ๋•Œ addforce ํ•˜๊ณ  velocityํ•˜๊ณ  ๋‘˜๋‹ค ๋“ค์–ด๊ฐ€์žˆ๋Š”๋ฐ ์™œ ๋‘๊ฐœ๋‹ค ๋“ค์–ด๊ฐ€์žˆ๋Š”์ง€ ์ดํ•ด๊ฐ€ ์•ˆ๋˜๋„ค.. ์œ ๋‹ˆํ‹ฐapi๋ณด๋‹ˆ ์˜์–ด๋กœ ๋˜์žˆ์–ด์„œ ์—ฌ๊ธฐ์— ์งˆ๋ฌธ ํ•ด๋ด„..