컴포넌트로 선언하는 것과 getComponent로 선언하는것이 무슨파차이가 있나요?
rigidbody 변수
변수 = getComponent<rigidbody>
둘다 rigidbody라는 컴포넌트에서 값들을 가져오는 것이 아닌가요?