์ด๋ค ํํ๊ฒ ์์ ์ ์๋ ์ฝ๋์ธ๋ฐ
FixedUpdate์์ GetComponent ํ๊ธฐ๋ณด๋จ
์ฒ์์ Rigidbody2D ๋ณ์ ๋ง๋ค์ด์ GetComponentํ๊ณ
๊ทธ Rigidbody2D ๋ณ์.velocity๋ฅผ FixedUpdate์
๋ฃ์ด์ฃผ๋๊ฒ ๋ ์ข์๊ฑฐ ์๋์ผ?
FixedUpdate์์ GetComponentํ๊ณ ์ด๊ธฐํ ํ๋ฉด
์ปดํฐ ๋ฉ๋ชจ๋ฆฌ ๊ฐ์๊ฑฐ์ ๋ถ๋ด๊ฐ๋๊ฑฐ ์๋?
FixedUpdate์์ GetComponent ํ๊ธฐ๋ณด๋จ
์ฒ์์ Rigidbody2D ๋ณ์ ๋ง๋ค์ด์ GetComponentํ๊ณ
๊ทธ Rigidbody2D ๋ณ์.velocity๋ฅผ FixedUpdate์
๋ฃ์ด์ฃผ๋๊ฒ ๋ ์ข์๊ฑฐ ์๋์ผ?
FixedUpdate์์ GetComponentํ๊ณ ์ด๊ธฐํ ํ๋ฉด
์ปดํฐ ๋ฉ๋ชจ๋ฆฌ ๊ฐ์๊ฑฐ์ ๋ถ๋ด๊ฐ๋๊ฑฐ ์๋?
๊ฐ์ฌ
๋ณ์ ์ ์ธ ์์ฒด๊ฐ ๋ฉ๋ชจ๋ฆฌ ๋ญ๋น์๋? ํธ์ถ์ ๋๋ค ๋์ผํ๊ณ
GetComponent ๋ ๋ฌด์กฐ๊ฑด Awake ํน์ Start ์์ ํ๋ฒ๋ง ์ด๊ธฐํํ๊ณ ํ๋ฉด ํจ์จ์