더보기3번째 팀프로젝트 진행하면서 가장 많이 본 오류.NullReferenceException: Object reference not set to an instance of an object값이 없다. Null이다. 연결이 안되어 있다. 오류를 해결하다보니 내가 GetComponent를 이상하게 쓰고 있다는 걸 알게됐다. 그래서 쓰는 TIL.===== GetComponent()이 스크립트가 붙어있는 게임오브젝트에서 컴포넌트 T를 찾는다. (없으면 null 반환)Rigidbody2D rb = GetComponent(); GetComponent(문자열)안전성 떨어져서 거의 안 씀. 되도록이면 제네릭 방식 ()을 써야 함Component comp = GetComponent("PlayerController");..